Since SVN was used all the time before and git was used in the wolf factory. Brother's Development Environment: intellij
Let's talk about the simple operation process.
1. Check out the GIT code library
CD to the specified directory
Git clone http: //.../Android. Git
Clone remote code to local
2.
remotelimingorigin> git remote -vliming /home/liming/repo (fetch)liming /home/liming/repo (push)origin [emailprotected] (fetch)origin [emailprotected] (push)This will/home/liming/repo as one of my remote repositories.As appropriate, you can use git remote rm or git remote Rename to modify the name of the repository (local, without affecting the other's direc
branch , and head pointing to the current branch. At first, the master branch is a line, and Git uses master to point to the latest commit, and then head to master to determine the current branch and the commit point of the current branch:The Master
Reset of Branch
question: when there is a new commit, the contents of the reference file for the master branch change. The contents of the reference file for the master branch can be artificially altered.
Touch New-commit.txt
git add new-commit.txt
Git commit-m
When you clone from a remote repository, git actually automatically corresponds to the local branch master and the remote master branch, and the default name for the remote repository is origin .To view information for a remote library, use git remote :$ git RemoteoriginOr,
English link:Http://www.nvie.com/posts/a-successful-git-branching-model/
Http://roclinux.cn /? P = 2129 # More-2129
Git is a decentralized distributed version control system. To facilitate management, it is best to maintain a central version library.
A central version Library (called its origin) should include at least two branches, namely "master" and "Development B
What is the use of branching in practice?You create a branch that belongs to you, others can't see it, others continue to work on the original branch, and you're working on your own branch, and you want to submit it, and then merge it into the original branch once the development is complete, It is safe and does not af
If you take programming seriously, you must use the version control system ).
The most popular version management system is not git.
Compared with similar software, git has many advantages. One notable point is that the branch and merge (merge) of the version are very convenient. In some traditional version management software,
essentially a reminder to push your changes back to the origin server.If you ' re working in a simple project (like I am) You can push your changes back to the origin server with this command:Git push Origin MasterGit commit is not "CVS commit" or "svn commit"Frankly, this was something I ' m really struggling with regarding Git right now. I ' m used to "CVS commit" or "svn commit" committing my changes back to the server, but with
existing version; H20, H28,h26,i8 H28,h26,i8 is created from the H20 below. Requirements: Create a new branch from below H28 continue development. Ideas: All the code is placed in the H20 warehouse, first download the H20 full repository, that is, the. git folder content, which is essentially a zip file. Then remove a branch from the repository (such as H28), whi
This article records the contents of the remote branch and tag that I encountered while using Git.
View Remote Branch Delete remote branch and tag Delete no local branch for remote branch rename remote
First, the basic action
The branch in Git is actually just a checksum containing the object (40 character length SHA-1 string)
files, so creating and destroying a branch becomes very inexpensive.
How does Git know what branch you are currently working on? In fact, the ans
for developing software in software development. It is similar to the beta version. Its idea is "development version", that is, development version or development edition .) The command to create a branch is$ Git branch DevThe command to move to the specified branch is$ Git
First, create the dev branch and switch to the dev branch.
$ git checkout -b dev
Git checkoutAdd the-B parameter to the command to create and switch, which is equivalent to the following two commands:
$ git branch dev
for developing software in software development. It is similar to the beta version. Its idea is "development version", that is, development version or development edition .) The command to create a branch is$ Git branch DevThe command to move to the specified branch is$ Git
The GIT branching structure is just the tree and then merging.1. Switching of branches and Merging Git checkout-b new-branch-name: You can quickly build and switch to a new branch.git checkout branch-name: You can quickly switch to a branch.Git branch: You can show all of t
1. Purpose This article describes how to operate git branches, including creating and deleting branches, viewing and switching branches, merging branches, and merging conflicts.
All operations involved in this article are performed in the ubuntu14.04 environment, and the GIT version is 1.9.1.
2. Create and delete branches use the GIT
Use git 3 branch (study Note 3) branch gitbranchnew // create a new branch to directly merge (merge) gitcheckout-balternatemaster // directly create the alternate branch and go to the branch; create a new gtiaddabo in the alternat
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.