Git: Difference between revisions

Line 35: Line 35:


==Branches==
==Branches==
You should make branches per-feature. 
This allows you to work on your feature from a static copy of the code repo. 
You can also discard this branch if you decide the feature is no longer needed. 
Once the feature has been fully developed, you should rebase the branch onto the head of master. 
Then you can merge the branch to add the feature to master.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# Make a branch
# Make a branch