diff options
Diffstat (limited to 'doc/topics/git/feature_branching.md')
-rw-r--r-- | doc/topics/git/feature_branching.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/topics/git/feature_branching.md b/doc/topics/git/feature_branching.md new file mode 100644 index 00000000000..f6233bddb18 --- /dev/null +++ b/doc/topics/git/feature_branching.md @@ -0,0 +1,31 @@ +--- +stage: none +group: unassigned +info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments +comments: false +--- + +# Feature branching + +- Efficient parallel workflow for teams +- Develop each feature in a branch +- Keeps changes isolated +- Consider a 1-to-1 link to issues +- Push branches to the server frequently + - Hint: This is a cheap backup for your work-in-progress code + +## Feature branching sample workflow + +1. Create a new feature branch called 'squash_some_bugs' +1. Edit '`bugs.rb`' and remove all the bugs. +1. Commit +1. Push + +```shell +git checkout -b squash_some_bugs +# Edit `bugs.rb` +git status +git add bugs.rb +git commit -m 'Fix some buggy code' +git push origin squash_some_bugs +``` |