-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig_home
28 lines (28 loc) · 1005 Bytes
/
gitconfig_home
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
[user]
email = j.m@majerti.fr
name = Julien MIOTTE
[core]
editor = vim
# pager = most
[color]
diff = auto
ui = auto
[alias]
pullrebase = pull --rebase
ci = commit -v -uno
wu = log origin/master..@{0} --pretty='format:%Cblue%ar%Creset %Cgreen%h%Creset %s' --color
st = status
up = pull --rebase
co = checkout
in = !git fetch origin && git log --stat HEAD..origin/master
create-remote-branch = "!f() { git push origin origin/master:refs/heads/$1 && git fetch origin && git checkout --track -b $1 origin/$1; }; f"
delete-remote-branch = "!f() { git push origin :heads/$1; }; f"
oops = rebase -i HEAD~10
rock = !git stash && git pull --rebase && git push && git stash pop
tree = log --graph --decorate --pretty=oneline --abbrev-commit
prefix-remote-branch = "!f() { git push origin origin/$1:refs/heads/$2/$1; git push origin :refs/heads/$1; }; f"
show-cherry = "!f() { git cherry $1|grep -v '^+'|awk '{ print $2 }'|xargs git show; }; f"
[merge]
tool = vimdiff
[push]
default = tracking