GIT 一般操作次序
作者:
14px | 来源:发表于
2018-10-08 09:37 被阅读0次
创建分支
$ git branch qiumo
切换分支
$ git checkout qiumo
创建并关联远程分支
git push origin qiumo
git branch --set-upstream-to=origin/qiumo
编写代码
<code>code</code>
添加
$ git add .
提交分支到本地
$ git commit -m "test"
更新分支
$ git pull
提交分支到远程
$ git push
切换本地分支到主线
$ git checkout master
更新本地主线
$ git pull
合并分支
$ git merge qiumo
提交主线到远程
$ git push
删除本地分支
$ git branch -d qiumo
删除远程分支
$ git push origin --delete qiumo
本文标题:GIT 一般操作次序
本文链接:https://www.haomeiwen.com/subject/piddaftx.html
网友评论