-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgitconfig
51 lines (48 loc) · 1.5 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
[user]
name = Jordan Eldredge
email = [email protected]
[color]
ui = auto
[diff]
renames = copies
[merge]
stat = true
[core]
excludesfile = ~/.gitignore
[advice]
statusHints = false
[help]
autocorrect = 1
[alias]
# Some typos
commmit = commit
stats = status
praise = blame
ad = add
ap = add -p
br = branch
ch = checkout
cm = commit -m
co = commit
pr = pull-request
dc = diff --cached
rb = !git fetch upstream && git rebase upstream/master
save = commit -m "Work in progress"
update = push -f origin
lg = !"git lg1"
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
ls = ls-files
st = status
recent = "!r() { cur=$(git rev-parse --abbrev-ref HEAD); git for-each-ref --sort=-committerdate refs/heads/ --format='%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' | sed \"s/m${cur}|/m* ${cur}|/\" | column -ts'|'; }; r"
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Backup the working directory without a commit
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
# Create a new branch from upstream master
bru = "!git fetch upstream && sh -c \"git checkout -b $1 upstream/master\" -"
[include]
path = ~/.gitconfig.local
[github]
user = captbaritone
[push]
default = current