debian-mirror-gitlab/doc/topics/git/feature_branching.md
2021-09-04 02:52:04 +05:30

828 B

stage group info comments
Create Source Code 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 false

Feature branching (FREE)

  • 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'
  2. Edit 'bugs.rb' and remove all the bugs.
  3. Commit
  4. Push
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