-
Notifications
You must be signed in to change notification settings - Fork 97
/
.gitconfig
55 lines (55 loc) · 1.44 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
46
47
48
49
50
51
52
53
54
55
[alias]
aliases=!git config -l | grep '^alias' | cut -c 7- | sort
aa = add -A .
b = branch
st = status
cheddar = commit --amend -CHEAD
ci = commit
co = checkout
cp = cherry-pick
put = push origin HEAD
find = !sh -c 'git ls-files | grep --color=always -i "$@" | less -FRSX' -
fixup = commit --fixup
squash = commit --squash
doff = reset HEAD^
ri = rebase --interactive
br = branch
pruneremote = remote prune origin
tree = log --graph --oneline --decorate --color --all
tr = log --graph --oneline --decorate --color
add-untracked = !"git status --porcelain | awk '/\\?\\?/{ print $2 }' | xargs git add"
reset-authors = commit --amend --reset-author -CHEAD
rmbranch = "!f(){ git branch -d ${1} && git push origin --delete ${1}; };f"
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
recent = for-each-ref --sort=-committerdate --count=10 --format='%(refname:short)' refs/heads/ # https://twitter.com/djm_/status/961289486721339392
[branch]
autosetuprebase = always
[color]
ui = auto
[core]
excludesfile = ~/.cvsignore
editor = vim
whitespace = warn
[help]
autocorrect = 10
[interactive]
singlekey = true
[merge]
summary = true
[merge "bundlelock"]
name = lock Gemfile
driver = bundle install
[merge "bundle"]
name = bundle
driver = bundle
[push]
default = tracking
autoSetupRemote = true
[rebase]
autosquash = true
[diff]
algorithm = patience
[include]
path = ~/.gitconfig.local
[fetch]
prune = true