hwinfo package to detect hw info.
[dotfiles] / .gitconfig
1 [user]
2 name = patrick nsukami
3 email = ndkpatt@gmail.com
4
5 [core]
6 excludesfile = /home/nsukami/.gitignore
7 editor = emacs -nw
8 autocrlf = input
9
10 [alias]
11 aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
12
13 pulled-changes = !git log -p -2
14 not-yet-pulled = !git log --name-status origin/master
15 lastco = log -1 HEAD --numstat
16
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
21 lg = !"git lg1"
22
23 undo-commit = reset --soft HEAD^
24 undo-add = reset HEAD
25 undo-modif = checkout
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"
32
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
38
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'"
44
45 up = !git pull --rebase
46 ec = config --global -e
47 cl = clone
48 ct = checkout
49 co = commit
50 cov = commit --verbose
51 com = commit -m
52 st = status
53 sts = status -s
54 stu = status -uno
55 br = branch
56 dc = diff --cached
57 au = add -u
58 cp = cherry-pick
59 hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
60 type = cat-file -t
61 dump = cat-file -p
62 stash = stash save -u # stash even the untracked files, and add a clear message
63
64 compactlog = log --pretty=format:"%Cgreen%h%Creset%x09%Cred%an%Creset%x09%ad%x09%s" --date=short
65 ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
66 ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
67 ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
68 log-diffs = log -u
69 log-me = !UN=$(git config user.name)&& git ld --author="\"$UN\""
70
71 filepath = "!git ls-files | grep -i"
72
73 r = reset
74 r1 = reset HEAD^
75 r2 = reset HEAD^^
76 rh = reset --hard
77 rh1 = reset HEAD^ --hard
78 rh2 = reset HEAD^^ --hard
79
80 [color]
81 ui = always
82 branch = auto
83 diff = auto
84 interactive = auto
85 status = auto
86
87 [commit]
88 template = /home/nsukami/.gitcommitmessagetemplate.txt
89
90 [status]
91 # be careful with that one
92 # showUntrackedFiles = all
93 [push]
94 default = simple