首页 > 其他 > 详细

GIT 之 分支操作常用命令

时间:2016-03-02 17:52:33      阅读:139      评论:0      收藏:0      [点我收藏+]

切换分支:git checkout name

撤销修改:git checkout -- file

删除文件:git rm file

查看状态:git status

添加记录:git add file 或 git add .

添加描述:git commit -m "miao shu nei rong"

同步数据:git pull

提交数据:git push origin name

分支操作

查看分支:git branch

创建分支:git branch name

切换分支:git checkout name

创建+切换分支:git checkout -b name

合并某分支到当前分支:git merge name

删除分支:git branch -d name

删除远程分支:git push origin :name

GIT 之 分支操作常用命令

原文:http://www.cnblogs.com/duyinqiang/p/5235787.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!