3 email = ndkpatt@gmail.com
6 excludesfile = /home/nsukami/.gitignore
11 aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
13 pulled-changes = !git log -p -2
14 not-yet-pulled = !git log --name-status origin/master
15 lastco = log -1 HEAD --numstat
17 lol = log --graph --decorate --pretty=oneline --abbrev-commit
18 lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
19 lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
20 lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
23 undo-commit = reset --soft HEAD^
26 abort-merge = reset --hard HEAD
27 assume-unch = update-index --assume-unchanged
28 unassume-unch = update-index --no-assume-unchanged
29 list-assumed-unch = !git ls-files -v | grep "^[[:lower:]]"
30 unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
31 assumeall = "!git st -s | awk {'print $2'} | xargs git assume-unch"
33 create-branch-from-stash = !git stash branch
34 create-branch = checkout -b
35 rename-branch = branch -m
36 goto-branch = checkout
37 delete-local-branch = branch -d
39 fix-latest-commit = commit --amend
40 panic = !tar cvf ../git_panic.tar *
41 current-branch = rev-parse --symbolic-full-name --abbrev-ref HEAD
42 number-of-commits-since-master = "! sh -c 'git log master..`git current-branch` --oneline | wc -l | tr -d \" \"'"
43 std = "! sh -c 'git status -s | while read mode file; do echo $mode $file $(stat -c %y $file); done'"
49 cov = commit --verbose
56 hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
59 stash = stash save -u # stash even the untracked files, and add a clear message
61 compactlog = log --pretty=format:"%Cgreen%h%Creset%x09%Cred%an%Creset%x09%ad%x09%s" --date=short
62 ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
63 ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
64 ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
66 log-me = !UN=$(git config user.name)&& git ld --author="\"$UN\""
68 filepath = "!git ls-files | grep -i"
74 rh1 = reset HEAD^ --hard
75 rh2 = reset HEAD^^ --hard
85 template = /home/nsukami/.gitcommitmessagetemplate.txt
88 # be careful with that one
89 # showUntrackedFiles = all