-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
63 lines (56 loc) · 1.51 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[merge]
ff = only
[push]
default = current
[core]
# Use custom `.gitignore`
excludesfile = ~/.gitignore
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error
whitespace = space-before-tab,indent-with-non-tab,trailing-space
editor = /usr/bin/vim
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = %Cred%h%Creset %Cgreen[%ar]%Creset (%an) %s
[alias]
a = add
br = branch
c = commit -m
co = checkout
dc = diff --cached
df = diff
di = diff
dic = diff --cached
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
last = log -1 HEAD
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
pl = pull
plre = pull --rebase
pr = remote prune origin
ps = push
rbc = rebase --continue
rbi = rebase -i
st = status
unstage = reset HEAD --
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
[user]
name = Elliot Nash
email = [email protected]