forked from keiththomps/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (45 loc) · 1.32 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
45
[user]
name = Keith Thompson
email = [email protected]
[core]
editor = vim
excludesfile = ~/.gitignore_global
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all :/
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
head = !git l -1
h = !git head
hp = "!source ~/.githelpers && show_git_head"
r = !git l -30
ra = !git r --all
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
pr = "!source ~/.githelpers && prune_and_delete_merged"
cleanlocal = "!zsh -c 'BRANCH=`git current`; if [[ ! $BRANCH =~ ^master$ ]];then read \"?Are you sure you want to run while not in master (you run the risk of deleting master)? (y/n) \" choice; if [[ ! $choice =~ ^[Yy]$ ]]; then echo Nothing done; exit 0; fi ; fi; for stale_branch (`git branch --merged $BRANCH | grep -v $BRANCH`) git branch -d $stale_branch'"
current = !git rev-parse --abbrev-ref HEAD
some = !git checkout master && git pull --rebase && git remote prune origin && git cleanlocal
[merge]
tool = vimdiff
[push]
default = current
[credential]
helper = osxkeychain