2021-05-13 11:10:20 -04:00
---
2021-06-01 20:09:56 -04:00
stage: Create
group: Source Code
2021-05-13 11:10:20 -04:00
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
---
2021-06-01 20:09:56 -04:00
# Feature branching **(FREE)**
2021-05-13 11:10:20 -04:00
- 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
2022-04-28 14:10:01 -04:00
- Hint: Pushing branches is a cheap backup for your work-in-progress code.
2021-05-13 11:10:20 -04:00
## 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
```