In actual development, we should follow several basic principles for branch management:
First of all, the master
branch should be very stable, that is, it is only used to release new versions, and usually cannot work on it ;
Where do you work? All work is done on the dev
branch, that is to say, the dev
branch is unstable. At a certain time, such as when the 1.0 version is released, the dev
branch will be merged to the master
above , and the master
1.0 version will be released on the branch;
Each of you and your friends dev
is working on the branch, and everyone has their own branch, and dev
it is enough to merge into the branch from time to time.
So, the teamwork branch looks like this: