-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
31 lines (31 loc) · 1.41 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
[user]
email = [email protected]
[alias]
s = status
co = checkout
a = add .
c = commit
cm = commit -m
rb = rebase
wdiff = diff --color-words
nb = checkout -b
br = branch -v
up = pull --rebase --prune
amend = commit -a --amend
wip = !git add -u && git commit -m "WIP"
staged = diff --staged
undo = reset HEAD~1 --mixed
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
force = push --force-with-lease
unpushed = log @{push}..
forcepull = !git fetch && git reset --hard origin/`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
refresh = !git fetch --all && git rebase origin/master
root = !cd `git rev-parse --show-toplevel`
changes = log -p -M --follow --stat --
shoe = show
b = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(content s:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset)) %(upstream:track)'
f = push --force-with-lease
[push]
default = current