Files
dotfiles/files/home/.gitconfig

85 lines
1.7 KiB
INI

[user]
name = Andrejus
email = git@andrejus.uk
[github]
user = andrejusk
[credential]
helper =
[credential "https://github.com"]
helper = !/usr/bin/env gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/bin/env gh auth git-credential
[init]
defaultBranch = master
[core]
autocrlf = input
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
side-by-side = false
line-numbers = true
paging = always
pager = less --mouse -RFX
[merge]
conflictstyle = zdiff3
[color]
ui = auto
[color "status"]
added = 42
changed = 226
untracked = 196
branch = 45
[color "diff"]
meta = 91
frag = 45
old = 196
new = 42
context = 252
[color "branch"]
current = 45
local = 252
remote = 27
[color "decorate"]
branch = 45
remoteBranch = 27
tag = 226
stash = 201
[alias]
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
lg = log --graph --decorate --oneline
d = diff
ds = diff --stat
dc = diff --cached
s = status -s
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
a = add
r = restore --staged
ap = add -p
c = commit --verbose
ca = commit -a --verbose
cm = commit -m
cam = commit -a -m
m = commit --amend --verbose
st = stash
sa = stash apply
cc = copilot --continue