Checkout A Git Branch

less than 1 minute read

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:

  1. Clone the respository git clone git@bitbucket.org:example/example-repo.git
  2. Create the branch in the remote repository.
  3. Identify the repo with git branch  (optional)
  4. Tell the local repo. about any remote branches that exist git branch
  5. 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.

Updated: