git切换远程分支到本地

224 阅读1分钟

git checkout -b <本地分支名> <远程主机>/<远程分支名>
git checkout -b test1 myOrigin/test2
test1:本地分支
myOrigin:远程主机
test2:远程分支