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 ".
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: git branch -- set-upstream
When git creates a new branch locally and pushes it to the remote server, the following prompt will be reported if it is not processed again:
You asked me to pull without telling me which branch
Remote Branch (branch) is the index of a branch in a remote repository. They are local branches that cannot be moved, and are only updated when Git is interacting with the network. The remote branch is like a bookmark that reminds you of the location of the previous
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 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
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
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
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.
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
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
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
[Git] The Branch Model of the branch git is called the "killer feature" because it distinguishes git from the version control system family. What's special about git? Git
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,
Collaborative development using Git Branch
In large-scale software project development, the use of multiple branches can not only develop multi-module tasks in parallel, but also avoid introducing new function code During Bug fixes or accidentally deleting the Bug code to fix and reproduce the problem, clearer development of 'Organizational 'projects.
The new branches generally fall into the following three
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
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
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.