-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
71 lines (58 loc) · 1.84 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
64
65
66
67
68
69
70
71
[push]
default = current
# default to personal config
[include]
path = ~/.gitconfig.personal
# when working on work projects
[includeIf "gitdir:**/src/openphone/**/.git"]
path = ~/.gitconfig.work
[alias]
co = checkout
ci = commit
br = branch
hist = log --pretty=format:'%Cgreen%h%Creset %Cblue%ad%Creset %C(magenta)%cn%Creset%C(yellow)%d%Creset%n %s' --graph --date=local
lol = log --graph --decorate --pretty=oneline --abbrev-commit
rpo = remote prune origin
unstage = reset HEAD
pr = pull --rebase
cp = cherry-pick
pom = push origin master
df = diff
a = add
g = grep --break --heading --line-number
rp = remote prune
gpc = push --set-upstream origin $(git-branch-current 2>/dev/null)
aa = add --all
ls = ls-files
rbm = !git fetch origin master && git rebase origin/master
old-branches = "!old_branches() { for branch in $(git branch -r | grep -v HEAD); do echo -e $(git show --format=\"%ci %cr\" $branch | head -n 1) \\t$branch; done | sort -r; }; old_branches;"
st = status
s = status
rcm = commit -c HEAD --reset-author
gr = grep --break --heading --line-number
recent-commits = "!recent_commits() { git log --pretty=format:\"%ad -- %an -- %d -- %B\" --date=relative --branches --since=7.days.ago --author=\"$1\"; }; recent_commits"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)>%Creset' --abbrev-commit
wip = !git add . && git commit -m 'wip'
amend = !git add . && git commit --amend --no-edit
rim = !git rebase -i origin/master
todo = grep --heading --break --ignore-case -e 'TODO: *'
fixme = grep --heading --break --ignore-case -e 'FIX: *' -e 'FIXME: *'
[push]
default = current
[hub]
protocol = https
[credential]
[core]
autocrlf = input
[difftool]
prompt = false
[grep]
linenumber = true
[branch]
autosetuprebase = always
[pager]
branch = false
[color]
ui = auto
[github]
username = seanknox