摘要: git cherry-pick 使用场景: 本地有多个分支,local_branch_A, local_branch_B, ... 在本地分支上local_branch_A 上做了 commit,想在此提交到 local_branch_B 上, 这时,如果你不怕出错,不嫌麻烦,当然可以在local_ 阅读全文
posted @ 2016-03-12 00:05 标准小兵 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: git rm --cached git commit“删除了文件"git rm --cached will remove the file from the stage. 阅读全文
posted @ 2016-03-12 00:04 标准小兵 阅读(2957) 评论(0) 推荐(0) 编辑
摘要: http://git-scm.com/book/zh/v2https://backlogtool.com/git-guide/tw/contents/http://gitbook.liuhui998.com/3_4.htmlgit loggit log -pgit log -n (n是一个数字,例如:git log -2)显示最近的n次提交loggit log -p -ngit log --... 阅读全文
posted @ 2016-03-12 00:02 标准小兵 阅读(363) 评论(0) 推荐(0) 编辑
摘要: https://git-scm.com/docs/git-stashNAMEgit-stash - Stash the changes in a dirty working directory awaySYNOPSISgit stash list []git stash show []git stash drop [-q|--quiet] []git stash ( pop | apply )... 阅读全文
posted @ 2016-03-12 00:00 标准小兵 阅读(181) 评论(0) 推荐(0) 编辑