GIT - 5
How to create Branch, Merge & Stash
============================================
_____0 branch (little branch)
|(start)
0--------------0------0---------------0 (master)
master commit commit |
|_______0______0_____0(big features)
The diagram above visualizes a Repository with two isolated lines of development, one for a little features, and one for a longer-running features. By developing them is Branches, it's not only possible to work on both of them in parallel but it also keeps the main master branch free from error.
-> Each task has one separate branch.
-> After done with code, Merge other branches with master.
-> This concept is useful for parallel developments.
-> you can create any no. of branches.
-> changes are personal to that particular branch.
-> default branch is 'Master'
-> files created in Workspace will be visible in any of the branch workspace untill you commit. Once you commit, then that files belongs to that Particular Branch.
-> when created new branch, data of existing branch.
Comments
Post a Comment