Tag: git 1. Background When I first used GitHub, I asked my roommates what Branch was in git. He gave me a straightforward explanation and I still remember it. "Branch means that you can build a branch by yourself without affecting the entire project ".
Recently tossing git, feeling about git this powerful and useful version management tool.Talk about Git branch management experience.First, you have a master Master branch:The name of the GIT Main branch, which is called Master by
Convenient for future reference. Thank the original blogger for sharing.
When we develop a project on more than one computer, we need to constantly modify the submission and update the latest remote code on another computer, see how to get updates from the remote code warehouse to the local, summed up the article on the Internet, using the following way is relatively simple.
Viewing remote branches
Use the following command to view the remote repository (I have a origin warehouse here)
When we initialize the Git repository, Git creates a main branch called Master by default. In the actual work, the main branch requirement is a stable, robust, secure main line, generally do not allow direct development on the main branch, but pull a new
Git Branch is more flexible, if you use the branch when there is no good plan, will make the branch too much, in the merger when there are various problems, so must be in the team management of the branch have reasonable planning and design, Vincent Driessen An article a suc
(1) Download first
git clone URL
(2) Switch to branch Jarsample
git checkout Jarsample
(3) Download the code from the master branch of the remote Origin repository to the local Origin jarsample
Git fetch Origin Jarsample
(
This article commands:
The configuration display color is: git config--global color.ui true
to set aliases to commands: Git config--global alias.co checkout
View remote repositories: Git remote-v To
create a remote warehouse branch: git checkout-b dev origin/dev
Create
This article translated from http://nvie.com/posts/a-successful-git-branching-model/ (by Vincent Driessen)
-
In this article, I will show a development model that has been used in all projects (including projects at work and private projects) a year ago. The result is very successful. I have long wanted to write something for it, but it is not until now. This article will not detail any project, but will only involve
Git Branch Management
Almost every version control system supports branching in some form. Using a branch means that you can detach from the development thread and continue to work without affecting the mainline.
Some people call Git's branching model A "must-kill" feature, and it's because of it, it separates git fr
understand for all git users.Each developer is on the origin code and commits the code. But in addition to the centralized access code relationship, each developer can also get code version changes from other teammates in the sub-team. For example, for large version changes made with 2 or more developers, this mechanism becomes useful to prevent premature submission of work to the Origin library. On the way, like the following team: Alice and Bob,ali
Remotes/origin/master
Remotes/origin/python_mail.skin
Remotes/origin/udisk
Remotes/origin/vip
Copy CodeCan see all the branches of the remote, such as Remotes/origin/python_mail.skin e Y ' X9 ~, F1 |You can use the checkout command to take a remote branch locally and automatically establish a tracking
$ git checkout-b python_mail.skin origin/python_mail.skin) x x:i3 Q;? 9 J9 T
Remotes/origin/master
Remotes/origin/python_mail.skin
Remotes/origin/udisk
Remotes/origin/vip
Copy CodeCan see all the branches of the remote, such as Remotes/origin/python_mail.skin e Y ' X9 ~, F1 |You can use the checkout command to take a remote branch locally and automatically establish a tracking
$ git checkout-b python_mail.skin origin/python_mail.skin) x x:i3 Q;? 9 J9 T
See a lot of different things about git fetch and git pull from BaiduPractice:Create a new project from GitHub try,copy to Local. Modify the Readme.txt file on the GitHub website and add a new "alter README"In the local warehouse Readme.txt also added a new sentence, "Add some thing"It is not possible to commit the local code to GitHub now. An error message will
Branching is the parallel universe in sci-fi movies, and while you're working on git in front of your computer, another one is working on SVN in another parallel universe.If two parallel universes don't interfere with each other, that's not going to affect you now. However, at some point in time, two parallel universes merged, and as a result, you learned both Git and svn!.What is the use of branching in pr
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.
Purpose
This article describes how to use Git to develop and publish projects. What branches are created and how they are handled in various scenarios.
Original: http://nvie.com/posts/a-successful-git-branching-model/ flowchart
Branch Introduction There are two main branches on the origin server: There are five types of branches on the master and Develop develop
1. What is a branchusing branching means that you can detach from the development main line (that is, out of the main branch) and continue to work without affecting the mainline. This mechanism is very useful in the multiplayer development process, where everyone needs to create a branch of their own, and then merge all the branches after each team has completed their development.Any version control tool ha
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.