发送本地branch到远程branch
git push <remote-name> <branch-name>
git push <remote-name> <local-branch-name>:<remote-branch-name>
获取远程branch
git remote show origin
git fetch
git checkout -b local-name origin/remote-name
或者
git checkout -b experimental origin/experimental
然后在此branch下执行git pull
git branch --set-upstream foo upstream/foo
That will cause Git to make foo
track upstream/foo
.