64 lines
1.9 KiB
INI
64 lines
1.9 KiB
INI
[user]
|
|
name = Tony Grosinger
|
|
email = tony@grosinger.net
|
|
[color]
|
|
ui = auto
|
|
|
|
[color "status"]
|
|
added = green
|
|
branch = white bold ul
|
|
changed = 9 # Bright red
|
|
unmerged = 11 # Bright yellow
|
|
untracked = 32 # Brighter blue
|
|
|
|
[alias]
|
|
co = checkout
|
|
amend = commit --amend
|
|
aq = commit --amend --no-edit
|
|
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
|
|
ri = "!f() { r=\"${1}\"; if [ \"${1}\" -eq \"${1}\" ]; then r=\"@~${1}\"; \
|
|
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): '
|
|
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)"
|
|
|
|
[push]
|
|
default = simple
|
|
|
|
[core]
|
|
editor = vim
|
|
excludesfile = /home/tgrosinger/.gitignore_global
|
|
pager = diff-so-fancy | less --tabs=4 -RFX
|
|
attributesfile = /home/tgrosinger/.gitattributes
|
|
|
|
[diff]
|
|
tool = meld
|
|
renames = copies
|
|
compactionHeuristic = 1
|
|
submodule = log
|
|
|
|
[branch]
|
|
autosetuprebase = always
|
|
|
|
[pull]
|
|
rebase = true
|
|
|
|
[log]
|
|
date = local
|
|
|
|
[status]
|
|
submoduleSummary = true
|