- http://stackoverflow.com/questions/2954477/how-to-find-commits-by-a-specific-user-in-git
- http://git-scm.com/docs/git-log
git log --author=<pattern>
git log --author="linuxeron" --grep="fix" -i
The --stat option displays the number of insertions and deletions to each file altered by each commit (note that modifying a line is represented as 1 insertion and 1 deletion).
git log --stat
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
git log --graph --abbrev-commit --decorate --all --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)"
git config --global alias.grog 'log --graph --abbrev-commit --decorate --all --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)"'
git fetch && git pull origin/develop --rebase --autostash
git merge --no-commit --no-ff $BRANCH
git merge --abort
git diff stash@{0}^1 stash@{0} -- <filename>
git diff stash@{0}^! -- <filename>
git shortlog -s -n --all --no-merges
git shortlog -ns --no-merges v11..HEAD | head -n15
git shortlog -ns --no-merges n2.4..HEAD | head -n15
git diff HEAD^^ HEAD main.c
git diff HEAD^^..HEAD -- main.c
git diff HEAD~2 HEAD -- main.c
git update-index --assume-unchanged <file>
#Long Path Issue Windows OS
git config --system core.longpaths true
git diff > some-changes.patch
git apply /path/to/some-changes.patch
git rev-list --count --since="Dec 3 2015" --before="Jan 3 2016" --all
git rev-list --count --since="Dec 3 2015" --before="Jan 3 2016" --all --no-merges
git rev-list --count HEAD --since=30.minute