-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
34 lines (34 loc) · 1.08 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
[user]
email = joe@domain7.com
name = Joe Flynn
[core]
excludesfile = ~/.gitignore
editor = vim
[pull]
rebase = true
[rebase]
autostash = true
[color]
ui = true
[alias]
co = checkout
po = pull origin
pu = pull upstream
pullr = pull --rebase
pr = push origin
prf = push -f origin
l1 = log --oneline --decorate
graph = log --graph --oneline --decorate --all
recent = branch --sort=committerdate
ec = config --global -e
cob = checkout -b
cm = !git add -A && git commit -m
save = !git add -A && git commit --no-verify -m 'squashme: WIP'
undo = reset HEAD~1 --mixed
amend = !git add -A && git commit --amend
ri = rebase -i
changed = "!f() { git diff ${1-master}..$(git rev-parse --abbrev-ref HEAD); }; f"
nope = checkout -- .
switch = "!f() { git checkout ${1-master}; git pull origin ${1-master}; }; f"
new = "!f() { git checkout ${2-master}; git pull origin ${2-master}; git checkout -b $1; }; f"
cleanup = "!f() { git branch --merged master | grep -v master | xargs -n 1 git branch -d; }; f"