- http://gitref.org/basic/ -- 類似 cheatsheet, 操作手冊
- http://code.google.com/p/git-repo/ -- Google 所寫的用來管理 android source code 中的 git project
- http://code.google.com/p/gerrit/ -- 針對使用 git 作 source control 的 web base,code review system
$git commit -a
a option ,意指..將修改過的檔案add 到 staging area,$git reset HEAD filename
$git diff
$git diff --cached
$git diff HEAD
$ git merge --squash branchname
$ git diff 201101270-a2 --stat
Makefile | 1 +
board/freescale/mx51_bbg/flash_header.S | 24 ++++--
board/freescale/mx51_bbg/lowlevel_init.S | 5 +-
board/freescale/mx51_bbg/mx51_bbg.c | 118 +++++++++++++++++++++++++++---
include/configs/mx51_bbg_android.h | 8 ++-
5 files changed, 132 insertions(+), 24 deletions(-)
$git branch -r
charles-robot/201101270-a2
charles-robot/20110131-test-a3
charles-robot/20110132-back-to-a1
charles-robot/20110316-a3-emmc-boot
charles-robot/cv7000-A2
charles-robot/imx_r9.1
charles-robot/master
origin/GPL-Cleanup
origin/HEAD -> origin/master
origin/i.MX31
origin/lwmon5
origin/master
origin/next
origin/origin
origin/tx25
origin/u-boot-2009.11.y
$git log --pretty=oneline
77355173c615b063d06061b698755d56676671e2 loyal 3G, tony break detect,AudioProcessor,Auron pmic_adc
20caf82ec8774c8a8635bf9679dc559f57fa6f30 commit previous patch
1fd44d644180a3a099c2e899aa1135bc80b00104 commit previous patch
8946a0b7e83f818430417a64eaf8bebdcf3ef64a commit pmic_adc.c
de713684abf9725717b070836333f0cc023ad21f 20110121
72443f571e57059fc44d719e4aedbe83c9b78723 20110121_01
...