-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
30 lines (29 loc) · 1.09 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[user]
name = Alpheus Madsen
email = [email protected]
[core]
editor = vim
pager = less -x1,5 -R
excludesfile = /home/alpheus/.gitignore
excludesFile = /Users/alpheus/.myGitIgnore
[color]
ui = always
[alias]
ignore = !git update-index --assume-unchanged
notice = !git update-index --no-assume-unchanged
list-ignored = !git ls-files -v | grep ^[a-z]
notice-all = !git list-ignored | awk '{print $2}' | xargs git notice
ln = !git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
tree = !git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
uno = !git status -uno
[pager]
;;;; NOTE: These settings require installing "diff-highlight".
;;;; This can be installed via
;;;; sudo su
;;;; cd /usr/bin
;;;; wget https://raw.github.com/git/git/master/contrib/diff-highlight/diff-highlight
;;;; chmod +x diff-highlight
;;;; "diff-highlight" highlights individual changes in changed lines
diff = diff-so-fancy | less -RSX
log = diff-so-fancy | less -RSX
show = diff-so-fancy | less -RSX