Skip to content

Instantly share code, notes, and snippets.

@menghan
Created February 26, 2013 03:46
Show Gist options
  • Select an option

  • Save menghan/5035719 to your computer and use it in GitHub Desktop.

Select an option

Save menghan/5035719 to your computer and use it in GitHub Desktop.
学习 git:Documentation/user-manual.txt 的笔记

git log -S'foo()' # search changesets which changes 'foo()'

git diff master..test # diff between tips of the two branches

git diff master...test # diff from common ancestor to test

git format-patch master..test # 加不加 '..' 是一样的

git show v2.5:fs/locks.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment