-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
31 lines (31 loc) · 830 Bytes
/
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
[user]
name = Fabian Ruff
email = [email protected]
[core]
excludesfile = ~/.gitignore
[color]
ui = auto
[difftool]
prompt = false
[mergetool]
prompt = false
[push]
default = upstream
[include]
path = .gitconfig.local
[web]
browser = open
[diff]
compactionHeuristic = true
noprefix = true
[alias]
# 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 "
l = !source ~/.githelpers && pretty_git_log # pretty log
lg = !source ~/.githelpers && pretty_github_log # pretty log
ci = commit
deltag = !sh -c 'git tag -d $1 && git push origin :refs/tags/$1' -
[pull]
ff = only
[init]
defaultBranch = main