forked from wmayner/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig.symlink
50 lines (50 loc) · 1.33 KB
/
gitconfig.symlink
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[user]
name = Graham Findlay
email = [email protected]
[alias]
# Log versions
g = log --graph --pretty=oneline --abbrev-commit
gg = log --graph --pretty=format:'%Cred%d%Creset - %s - %C(yellow)%an%Creset %Cgreen%cr%Creset %Cblue%h%Creset' --date=relative --abbrev-commit
ggg = log --graph
l = log --pretty=format:'%C(yellow)%h%Creset - %Cblue%an%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# Tree editing
unstage = reset HEAD --
undo = reset --soft HEAD^
nuke = reset --hard HEAD^
blast = reset --hard HEAD
amend = commit --amend -C HEAD
untrack = update-index --assume-unchanged
track = update-index --no-assume-unchanged
# Less verbose that status
s = status --short
# Save a repo as a tarball
export = archive -o latest.tar.gz -9 --prefix=latest/
# Remove whitespace clutter from diff
diff = diff -w
[color]
ui = true
[color "branch"]
current = cyan
local = green
remote = yellow
[color "diff"]
meta = cyan reverse
frag = reverse
old = red
new = green
[color "status"]
added = green
changed = yellow
untracked = cyan
[diff]
tool = vimdiff
[push]
default = simple
[core]
excludesfile = ~/.gitignore
autocrlf = input
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f