赞
踩
1:git branch branchName(在本地创建一个命名为branchName的分支)
2:git branch 查看当前自己所在的分支
3:git branch -a 查看服务器的所有分支以及自己当前所在的分支
4:git push origin branchName(把命名为branchName的本地分支推送到服务器)
5:git checkout branchName 切换分支
6:与远程关联:
git branch --set-upstream-to=origin/remote_branch your_branch
取消关联 : git remote remove upstream
其中,origin/remote_branch是你本地分支对应的远程分支;your_branch是你当前的本地分支
7:git push origin branchName(提交代码到远程服务器上命名为branchName的分支上)
8 :git pull origin branchName (从远程分支上拉取代码)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。