Skip to content

Instantly share code, notes, and snippets.

@alaztetik
Created November 23, 2022 11:06
Show Gist options
  • Save alaztetik/baab6799d606359344c3a66921fdca02 to your computer and use it in GitHub Desktop.
Save alaztetik/baab6799d606359344c3a66921fdca02 to your computer and use it in GitHub Desktop.
How to reach remote branches other than main
# list all the branches of upstream repository:
git branch -a
# checkout one of them:
git checkout remote/branch/name
# start committing on your local:
git checkout branch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment