摘要: 查看分支:git branch 创建分支:git branch <name> 切换分支:git checkout <name> 创建+切换分支:git checkout -b <name> 合并某分支到当前分支:git merge <name> 删除分支:git branch -d <name> 创 阅读全文
posted @ 2017-11-07 22:08 无花1 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: git撤销修改分两种情况 1.还没有 git add到stage区 直接命令git checkout -- file 撤销自己的修改 2.已经git add到stage区 先git reset HEAD <file>..." to unstage 再git checkout -- file撤销修改 阅读全文
posted @ 2017-11-07 15:15 无花1 阅读(158) 评论(0) 推荐(0) 编辑