Checkout A Git Branch
If you are using GitFlow you will typically need to create a branch from ‘Develop’ to do your development work. To create the branch follow these steps:
- Clone the respository
git clone git@bitbucket.org:example/example-repo.git
- Create the branch in the remote repository.
- Identify the repo with
git branch
(optional) - Tell the local repo. about any remote branches that exist
git branch
- Checkout the remote branch
git checkout feature/branch-namr
Now you can make local changes in this branch and push them to the remote branch.
When you have completed the branch development you will then want to submit a pull request so the work can be reviewed before being pulled into the ‘Develop’ branch.