Skip to content

Instantly share code, notes, and snippets.

@seak0503
Created May 17, 2015 15:45
Show Gist options
  • Save seak0503/19aea8e61511737f6099 to your computer and use it in GitHub Desktop.
Save seak0503/19aea8e61511737f6099 to your computer and use it in GitHub Desktop.
Gitでリモートから、ローカルとは別のブランチをローカルブランチにマージしないでpull(checkout)する方法

ローカルブランチがmasterだっととして、リモートブランチのdevelopブランチをローカルにpull(checkout)するには下記を実行する

構文

$ git checkout -b new-branch origin/new-branch

$ git checkout -b develop origin/develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment