赞
踩
- git add .
- git commit -m '提交的备注信息'
- git push -u origin dev
git checkout master
- git pull origin master
- //如果是自己一个开发就没有必要了,为了保险期间还是pull
git merge dev
- git status
-
- On branch master
- Your branch is ahead of 'origin/master' by 12 commits.
- (use "git push" to publish your local commits)
- nothing to commit, working tree clean
-
- //上面的意思就是你有12个commit,需要push到远程master上
- > 最后执行下面提交命令
- git push origin master
- 更新远程分支列表
- git remote update origin --prune
-
- 查看所有分支
- git branch -a
-
- 删除远程分支Chapater6
- git push origin --delete Chapater6
-
- 删除本地分支 Chapater6
- git branch -d Chapater6
6.git 将本地分支关联到远程分支
git branch --set-upstream-to=origin/远程分支名 本地分支名
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。