dotfiles/.gitconfig

62 lines
1.9 KiB
INI
Raw Normal View History

2012-11-09 20:44:06 -08:00
[user]
name = Tony Grosinger
2020-05-18 07:28:26 -07:00
email = tony@grosinger.net
2012-11-09 20:44:06 -08:00
[color]
ui = auto
2015-10-12 13:58:31 -07:00
2016-08-08 14:03:50 -07:00
[color "status"]
added = green
branch = white bold ul
changed = 9 # Bright red
unmerged = 11 # Bright yellow
untracked = 32 # Brighter blue
2012-11-09 20:44:06 -08:00
[alias]
2015-10-12 13:58:31 -07:00
co = checkout
amend = commit --amend
2016-08-08 14:03:50 -07:00
aq = commit --amend --no-edit
2015-10-12 13:58:31 -07:00
c = commit
s = status -sb
b = branch
pp = log --color --graph --pretty=format:'%Cred%h%Creset %Cgreen(%cr) %Creset\t%s %C(bold blue)<%an> %C(yellow)%d%Creset' --abbrev-commit
type = cat-file -t
dump = cat-file -p
hist = log --pretty=format:\"%C(yellow)%h %C(blue)%cd %C(red)%d %C(reset)%s %C(green)[%an]\" --decorate --graph --date=short --all
2016-08-08 14:03:50 -07:00
ri = "!f() { r=\"${1}\"; if [ \"${1}\" -eq \"${1}\" ]; then r=\"@~${1}\"; \
2017-11-07 13:41:08 -08:00
fi >/dev/null 2>&1; git rebase --autosquash -i \"${r}\"; }; f"
patch = !git --no-pager diff --no-color
diff = diff-so-fancy | less --tabs=4 -RFXS --pattern '^(Date|added|deleted|modified): '
2020-11-04 09:45:58 -08:00
review = "!f(){ BRANCH=\"$(git rev-parse --abbrev-ref HEAD)\"; git push -u origin \"$BRANCH\":user/$USER/\"$BRANCH\" --force; }; f"
# Branch-agnostic aliases
# https://aj.codes/post/branch-agnostic-git-aliases/
default-branch = "!git symbolic-ref refs/remotes/origin/HEAD | cut -f4 -d/"
pom = push origin $(git default-branch)
merged-branches = "!git branch --merged $(git default-branch)"
sync = "!git fetch -p && git rebase origin/$(git default-branch)"
2015-10-12 13:58:31 -07:00
2014-04-15 07:57:16 -07:00
[push]
2015-10-12 13:58:31 -07:00
default = simple
[core]
2015-10-12 13:58:31 -07:00
editor = vim
2021-07-20 10:56:36 -07:00
attributesfile = /home/tgrosinger/.gitattributes
2021-07-29 14:13:19 -07:00
excludesfile = /home/tgrosinger/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
2015-10-12 13:58:31 -07:00
[branch]
autosetuprebase = always
2015-10-12 13:58:31 -07:00
[pull]
2021-07-29 14:13:19 -07:00
rebase = true
2015-10-12 13:58:31 -07:00
2016-08-08 14:03:50 -07:00
[log]
date = local
[status]
submoduleSummary = true
2021-07-20 10:56:36 -07:00
[url "ssh://git@gitlab.i.extrahop.com/"]
insteadOf = https://gitlab.i.extrahop.com/