-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
41 lines (41 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
[user]
email = [email protected]
name = Nick Schonning
[core]
editor = code --wait
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
amend = commit -a --amend --no-edit
aru = remote add upstream
br = branch -v
cb = checkout -b
ci = commit
cleanup = !git branch --merged | grep -v '\\*\\|master\\|live' | xargs -n 1 git branch -d
cleanup-orphans = !git branch --no-merged | grep -v '\\*\\|master\\|live' | xargs -n 1 git branch -D
co = checkout
cs = commit -s
cud = checkout upstream/docs
cul = checkout upstream/live
cum = checkout upstream/master
cus = checkout upstream/staging
down = pull origin
fu = fetch upstream
in = commit -a
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
mum = merge upstream/master
pf = push --force
pr = "!f() { git fetch upstream refs/pull/$1/head:pr/$1; } ; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
pum = pull upstream master
rc = rebase --continue
rum = "!git pull --rebase upstream $(git remote show upstream | grep 'HEAD branch' | cut -d ':' -f 2)"
st = status
unstage = reset HEAD --
unwip = git log -n 1 | grep -q -c wip && git reset HEAD~1
up = push origin
wip = "git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m \"wip\""