Skip to content

Instantly share code, notes, and snippets.

@kaedonkers
Created September 20, 2023 16:32
Show Gist options
  • Save kaedonkers/809f4ceb88960e1320d30f0705f942c5 to your computer and use it in GitHub Desktop.
Save kaedonkers/809f4ceb88960e1320d30f0705f942c5 to your computer and use it in GitHub Desktop.
Git clone specific branch
# First time cloning repo
git clone --branch <branch-name> <url|ssh>
# If already cloned
git fetch
git switch <branch-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment