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