一、本地新创建分支推到远程
1.git checkout -b new_branch
2.git push --set-upstream origin new_branch
二、git拉取远程分支并创建本地分支
方法1:
git fetch git branch -r git checkout -b fenzhi001 origin/fenzhi001
git checkout -b 本地分支名x origin/远程分支名x
1.git checkout -b new_branch
2.git push --set-upstream origin new_branch
方法1:
git fetch git branch -r git checkout -b fenzhi001 origin/fenzhi001