git
文章平均质量分 68
Xalloc
create and share values.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git rev tips
1. git checkout to previous branch git checkout - like cd -, - is an abbreviation of @{-1}, @{-n} denotes the nth previous branch. 2. @{n}, ref@{n} the nth rev of ref/current branch git show @{1原创 2015-08-04 13:37:32 · 454 阅读 · 0 评论 -
rewinding-git-commit-amend
http://blog.pivotal.io/labs/labs/rewinding-git-commit-amend It may come to pass that you will amend HEAD with changes that were meant to go on a commit earlier than HEAD via git commit --amend转载 2015-09-11 09:58:24 · 694 阅读 · 0 评论 -
git hook之prepare-commit-msg
git内置了九个hook,详细请man hooks 其中prepare-commit-msg这个hook是在git commit准备好默认的log信息之后, 在启用editor之前调用的,使用这个信息我们可以对commit信息可以进行编辑,通常的需求是commit的信息需要合乎一定的规范,但是这个规范的动作每次都要自己填写会很麻烦,这就情况下就可以使用这个hook对消息进行编辑。这里假定有这么一原创 2016-01-27 17:47:05 · 8068 阅读 · 0 评论
分享