-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
102 lines (98 loc) · 3.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[alias]
st = status -sb
ci = commit
co = checkout
requests = fetch origin +refs/merge-requests/*:refs/merge-requests/*
unpushed = log origin/master..HEAD
tree = log --graph --oneline --all
loll = log --pretty=oneline --abbrev-commit --graph --decorate --all
lol = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
who = shortlog -s --
ll = log --pretty=\"format:%Cred%h%Creset %s %Cgreen%an %Cblue%ar%Creset\" --no-merges
monsterpush = "!branch=`git rev-parse --abbrev-ref HEAD`; git push origin ${branch}:staging ${branch}:master"
monsterupdate = !git fetch origin && git merge origin/master && git merge origin/staging
railsupdate = "!git pull origin master && bundle && rake db:migrate && rake db:test:prepare"
overview = log --pretty=oneline --abbrev-commit --graph --decorate --all --simplify-by-decoration
today = log --since=midnight --author='Stefan Wienert' --oneline
g = grep --break --heading --line-number
todos = "!rg TODO `git diff --name-only -GTODO origin/master`"
rm-merged = !git branch --merged | grep -v '\\*' | egrep -v '^ *master *$' | xargs -n 1 git branch -d
fix = "!f() { ${EDITOR} `git diff --name-only --diff-filter=U`; }; f"
cane = commit --amend --no-edit
last = log -1 HEAD
pr = pull --rebase
dz = diff --color-moved=dimmed-zebra
prp = !git pull --rebase && git push
rebase-continue = "!git add -u && git rebase --continue"
acp = "!git add -u && git commit && git push"
root = rev-parse --show-toplevel
uncommited = "!nvim `git diff --name-only`"
rspec-changed = "!bundle exec rspec `git ls-files spec -m`"
rspec-uncommited = "!bundle exec rspec `git diff HEAD --name-only spec | grep _spec.rb`"
tidyup = "!git gc && git remote prune origin && git rm-merged"
rls = remote -v
force-push-current = "!git push --force-with-lease origin \"$(git rev-parse --abbrev-ref HEAD)\""
branch-age = "!git for-each-ref --format='%(align:15,left)%(committerdate:relative)%(end) | %(refname)' --sort -committerdate | sed 's/refs\\/\\(remotes\\|heads\\)\\///'"
b = "!git branch --all --sort=-committerdate --format='%(HEAD) %(align:18,left)%(color:green)%(committerdate:relative)%(color:reset)%(end) %(color:yellow)%(refname:short)%(color:reset) %(contents:subject) - %(authorname))'"
addam = "!git add -u && git commit --amend"
testfix = "!git add -u && git commit -m Testfix && git push"
quickfix = "!git add -u && git commit -m Quickfix && git push"
big-commits ="!git rev-list --objects --all \
|git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
|sed -n 's/^blob //p' \
|sort --numeric-sort --key=2 \
|cut -c 1-12,41- \
|$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest | tail -n 20"
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = 1
[user]
name = Stefan Wienert
email = info@stefanwienert.de
[github]
user = zealot128
[credential "https://git.pludoni.com"]
username = swi
[url "git@github.com:"]
insteadOf = "https://github.com/"
[credential]
helper = cache --timeout=300
[core]
excludesfile = ~/.gitignore
[grep]
lineNumber = true
extendRegexp = true
[push]
default = simple
autoSetupRemote = true
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[mergetool]
prompt = true
keepBackup = false
[merge]
tool = vimdiff
ff = only
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[safe]
directory = /home/pludoni/cli-tools/pltt
[http]
postBuffer = 524288000
[rebase]
instructionFormat = " %s (%an)"
[rerere]
enabled = true
[diff]
algorithm = histogram
[branch]
sort = -committerdate