alias for last commit, pulled changes, not yet pulled changes
[dotfiles] / .gitconfig
1 [user]
2 name = patrick nsukami
3 email = ndkpatt@gmail.com
4
5 [core]
6 excludesfile = /home/nsukami/.gitignore
7 editor = emacs
8 autocrlf = input
9
10 [alias]
11 changes-pulled = !git log -p -2
12 not-yet-pulled = !git log --name-status origin/master
13 aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
14 lastco = log -1 HEAD
15 list-assumed-unchanged = !git ls-files -v | grep "^[[:lower:]]"
16 lol = log --graph --decorate --pretty=oneline --abbrev-commit
17 lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
18 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
19 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
20 lg = !"git lg1"
21 undo-commit = reset --soft HEAD^
22 create-branch-from-stash = !git stash branch
23 undo-add = reset HEAD
24 undo-modif = checkout
25 assume-unchanged = update-index --assume-unchanged
26 no-more-assume-unchanged = update-index --no-assume-unchanged
27 #list-files-assumed-unchanged = ls-files -v | grep "^[^H]"
28 delete-local-branch = branch -d
29 create-branch = checkout -b
30 goto-branch = checkout
31 fix-latest-commit = commit --amend
32 rename-branch = branch -m
33 ch = checkout
34 co = commit
35 st = status
36 br = branch
37 hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
38 type = cat-file -t
39 dump = cat-file -p
40 stash = stash save -u # stash even the untracked files, and add a clear message
41 dc = diff --cached
42 compactlog = log --pretty=format:"%h%x09%an%x09%ad%x09%s" --date=short
43 ls = ls-files
44
45
46 [color]
47 ui = always
48 branch = auto
49 diff = auto
50 interactive = auto
51 status = auto
52
53 [commit]
54 template = /home/nsukami/.gitcommitmessagetemplate.txt
55
56 [status]
57 # be careful with that one
58 # showUntrackedFiles = all