$git checkout main.c //checkout tag name
$git checkout -- main.c //checkout file name
2.指定log编辑器
setenv GIT_EDITOR vim //tch
export GIT_EDITOR=vim //bash
3.--author when met some wired message :P
4.比较两个版本
git log
git diff 0f793b8262cbd843e8ad7c75430aab7bebc6522d^1..HEAD wp-content/themes/bugbam/header.php
5.diff stat
git diff master~5 master
No comments:
Post a Comment