-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
80 lines (67 loc) · 2.55 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
[user]
name = Michiel Scholten
email = michiel@diginaut.net
[giggle]
main-window-maximized = true
main-window-geometry = 430x306+0+26
history-view-vpane-position = 550
file-view-vpane-position = 730
main-window-view = HistoryView
[alias]
lol = log --pretty=oneline --abbrev-commit --graph --decorate
shove = commit -m \"$(curl http://whatthecommit.com/ 2> /dev/null |html2text |head -n1)\"
st = status
co = checkout
ci = commit
br = branch
c = commit -am
shame = blame
r = !GIT_NO_PAGER=1 git l -30
l = "!. ~/.githelpers && pretty_git_log"
# Some inspiration from https://gist.github.com/mwhite/6887990
# list branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# https://www.commandlinefu.com/commands/view/4519/list-all-authors-of-a-particular-git-project
authorstats = "!git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn"
authors = !git log --format='%aN' | sort -u
authorsemail = !git log --all --format='%cN <%cE>' | sort -u
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
# git change-commits GIT_COMMITTER_NAME "old name" "new name"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
# from https://help.github.com/articles/remove-sensitive-data
remove-file = "!f() { git filter-branch -f --index-filter \"git rm --cached --ignore-unmatch $1\" --prune-empty --tag-name-filter cat -- --all; }; f"
[push]
default = simple
[core]
editor = vim
excludesfile = ~/.gitignore_global
[diff]
wsErrorHighlight = all
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@bitbucket.org:"]
insteadOf = "bb:"
pushInsteadOf = "bitbucket:"
pushInsteadOf = "git://bitbucket.org/"
[url "git://bitbucket.org/"]
insteadOf = "bitbucket:"
[pull]
rebase = false
[safe]
directory = /storage/emulated/0/Git/phren
directory = /storage/emulated/0/Git/divaultphren
directory = /storage/emulated/0/Git/mydocs
directory = /data/data/com.termux/files/home/.dot/dotfiles/
directory = /storage/emulated/0/Git/dammit.nl
directory = /mnt/chromeos/PlayFiles/Documents/phren
directory = /mnt/chromeos/PlayFiles/Documents/divaultphren
directory = /mnt/chromeos/PlayFiles/Documents/mydocs
#[http]
# postBuffer = 1048576000
# lowSpeedLimit = 0
# lowSpeedTime = 999999