git
flamme
这个作者很懒,什么都没留下…
展开
-
Beautiful Git Log
Beautiful Git Log转载自:https://coderwall.com/p/euwpig/a-better-git-loggit log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit效果图:转载 2015-11-15 20:17:02 · 185 阅读 · 0 评论 -
git 撤销操作
1. 修改最后一次提交使用命令:git commit --amend加上--amend相当于使用暂存区域快照提交。git commit -m 'first commit' git add some_file git commit --amend最终只产生一次提交2. 取消对文件的修改使用命令:git checkout -- filename3. 取消已经add的文件git reset HEAD fi原创 2015-11-15 21:53:48 · 179 阅读 · 0 评论