Jump to content

Git: Difference between revisions

361 bytes added ,  15 August 2020
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