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