2020-09-17 02:12:29 +00:00
|
|
|
|
[user]
|
|
|
|
|
name = Marcus Noble
|
2021-10-14 09:11:17 +00:00
|
|
|
|
signingkey = B8F2DB8A7AEBAF78
|
|
|
|
|
|
|
|
|
|
[commit]
|
|
|
|
|
gpgsign = true
|
2020-09-17 02:12:29 +00:00
|
|
|
|
|
|
|
|
|
[core]
|
|
|
|
|
editor = /usr/bin/vim
|
|
|
|
|
excludesfile = ~/.gitignore
|
2021-07-26 06:36:38 +00:00
|
|
|
|
pager = git-split-diffs --color | less -RFX
|
2020-09-17 02:12:29 +00:00
|
|
|
|
|
|
|
|
|
[push]
|
|
|
|
|
default = simple
|
|
|
|
|
|
2021-06-08 07:53:38 +00:00
|
|
|
|
[init]
|
|
|
|
|
defaultBranch = main
|
|
|
|
|
|
2020-09-17 02:12:29 +00:00
|
|
|
|
[credential]
|
|
|
|
|
helper = store
|
|
|
|
|
|
|
|
|
|
[color]
|
|
|
|
|
ui = true
|
|
|
|
|
[color "diff"]
|
|
|
|
|
old = red strike
|
|
|
|
|
new = green italic
|
|
|
|
|
|
|
|
|
|
[alias]
|
|
|
|
|
basename = "!git remote -v | head -n1 | awk '{print $2}' | sed 's/.*\\///' | sed 's/\\.git//'"
|
|
|
|
|
org-name = "!git remote -v | grep -m 1 -o ':.*/' | sed 's:^.\\(.*\\).$:\\1:'"
|
|
|
|
|
branch-name = "!git rev-parse --abbrev-ref HEAD"
|
2021-06-07 14:11:10 +00:00
|
|
|
|
changelog-changed = "!test $(git diff --name-only HEAD origin/$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') | grep CHANGELOG.md | wc -l | xargs) = 1"
|
2021-10-14 09:11:17 +00:00
|
|
|
|
main-branch = "!git remote show origin|grep HEAD|sed 's/.* //'"
|
2020-09-17 02:12:29 +00:00
|
|
|
|
|
2021-10-14 09:11:17 +00:00
|
|
|
|
main = "!git remote set-head origin --auto && git checkout $(git main-branch) && git pull"
|
2020-09-17 02:12:29 +00:00
|
|
|
|
publish = "!func(){ if [[ $(git branch-name) != \"$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')\" ]]; then git push -u origin $(git branch-name) && (git changelog-changed || echo '\n\n⚠️ Dont forget to update changelog ⚠️ ') ; else echo "Wat?!"; fi; }; func"
|
|
|
|
|
cleanup = "!git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done"
|
|
|
|
|
dont-change-file = "!git update-index --assume-unchanged"
|
|
|
|
|
ignore-file = "!git update-index --skip-worktree"
|
|
|
|
|
remember-file = "!git update-index --no-skip-worktree"
|
|
|
|
|
logg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
|
|
|
|
dif = "!git diff -w"
|
|
|
|
|
pop = "!git stash pop"
|
|
|
|
|
|
|
|
|
|
[help]
|
|
|
|
|
autocorrect = 1
|
|
|
|
|
|
|
|
|
|
[diff]
|
|
|
|
|
compactionHeuristic = true
|
2020-12-07 06:39:16 +00:00
|
|
|
|
|
|
|
|
|
[url "ssh://git@github.com"]
|
|
|
|
|
insteadOf = https://github.com
|