Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jameBoy/fc96bc8f22a527622e1e0841eb148ed7 to your computer and use it in GitHub Desktop.

Select an option

Save jameBoy/fc96bc8f22a527622e1e0841eb148ed7 to your computer and use it in GitHub Desktop.
git fetch origin branchname:branchname
可以把远程某各分支拉去到本地的branchname下,如果没有branchname,则会在本地新建branchname
git checkout origin/remoteName -b localName
获取远程分支remoteName 到本地新分支localName,并跳到localName分支
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment