-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
44 lines (44 loc) · 1.48 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
[user]
name = Harlow Ward
email = harlow@hward.com
[merge]
ff = only
[push]
default = tracking
[alias]
plre = pull --rebase
cb = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
db = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
am = commit --amend -C HEAD
aa = add --all --intent-to-add
ap = add --patch
co = checkout
st = status
undo = reset --soft HEAD^
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
lg = log --graph --pretty=format:'%Cred%h%Creset %Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgl = !git --no-pager lg -50
lgs = !git --no-pager lg -15
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
rebase-origin = !git fetch origin && git rebase -i origin/master
merge-branch = !git checkout master && git merge @{-1} --ff-only
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
[core]
editor = vim -f
excludesfile = /Users/harlow/.gitignore
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[color]
ui = auto
branch = auto
diff = auto
interactive = auto
status = auto
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[url "git@github.com:clearbit"]
insteadof = https://github.com/clearbit