Skip to content

Instantly share code, notes, and snippets.

@marvinjude
Last active July 14, 2020 14:38
Show Gist options
  • Select an option

  • Save marvinjude/7eebcf6ee62239ee39c6026f5ea7b82a to your computer and use it in GitHub Desktop.

Select an option

Save marvinjude/7eebcf6ee62239ee39c6026f5ea7b82a to your computer and use it in GitHub Desktop.
fetch a new remote branch to your local repository

fetch a new remote branch to your local repository

git fetch origin <source-branch>:<new-local-branch>
git checkout <new-local-branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment