-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitconfig
50 lines (49 loc) · 1.59 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
[user]
name = Salvatore Realmuto
email = salvatore.realmuto@nasdaq.com
[color]
ui = true
[color "branch"]
current = cyan bold
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
whitespace = white reverse
[color "status"]
added = green bold
changed = blue bold
untracked = magenta bold
deleted = red bold
branch = yellow bold
[alias]
authors = shortlog -sn
behind = !git log ..upstream/master --oneline
ahead = !git log upstream/master.. --oneline
upstream = !git cherry upstream/master
files = !git diff --name-only upstream/master..
dupes = !git rev-list --objects --all | cut -c1-7 | sort | uniq -c | grep -v '^ *1'
count = !git shortlog -n --no-merges --since '{last friday at 09:30:00}'
undo = reset HEAD@{1}
me = !git rev-parse --abbrev-ref HEAD
up = !git push origin -u $(git me)
down = !git push origin --delete $(git me)
acm = !git add . && echo 'Staged all changes, if any.' && git commit -m $message
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
la = !git config -l | grep alias
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
et = status
di = diff
ci = commit
br = branch
co = checkout
cob = !git checkout -b
llog = log --date=local
[rerere]
enabled = true
[push]
default = simple
[remote "upstream"]
fetch = +refs/heads/*:refs/remotes/upstream/*
fetch = +refs/pull-requests/*/from:refs/remotes/upstream/pr/*