0. 克隆远程仓库
git clone 远程仓库地址
1. 拉取远程的所有信息(不确定特定分支)
git pull
2. 查看所有远程分支
git branch -a
拉取结果如下,*为所在的分支:
* master
remotes/origin/jiashi
remotes/origin/master
remotes/origin/word
3.切换分支,并在本地创建同样的分支名。(例如切换到jiashi分支)
git checkout -b jiashi origin/jiashi
4.修改后推送到对应的分支
git push origin jiashi
转载于:https://www.cnblogs.com/everfight/p/git_checkout_remote_branch.html