Skip to content

Instantly share code, notes, and snippets.

@avestura
Last active January 19, 2025 20:33
Show Gist options
  • Save avestura/cac5c004c62a1bab9548a862f36b91ef to your computer and use it in GitHub Desktop.
Save avestura/cac5c004c62a1bab9548a862f36b91ef to your computer and use it in GitHub Desktop.
Avestura's Git Config
[core]
editor = nvim
[status]
short = true
branch = true
[url "https://"]
insteadOf = git://
[url "https://github.com/"]
insteadOf = [email protected]:
#[pull]
#rebase =
[fetch]
prune = true
[help]
autocorrect = prompt
[alias]
pl = pull
ps = push
md = merge development
dev = checkout development
stg = checkout stage
master = checkout master
main = checkout main
logf = log -20 --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%<(15,trunc)%an%Creset %s'
logfn = log -15 --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%an%Creset%n %s'
lg = log --graph --decorate -30 --all --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'
lga = log --graph --decorate -30 --all --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%<(15,trunc)%an%Creset%C(auto)%d %s'
lgn = log --graph --decorate -30 --all --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%an%Creset%C(auto)%d%n %C(white bold)%s%Creset'
lgb = log --graph --decorate -30 --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'
lgab = log --graph --decorate -30 --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%<(15,trunc)%an%Creset%C(auto)%d %s'
lgc = log --graph --decorate -30 --all --topo-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset %C(green)%<(15,trunc)%an%Creset%C(auto)%d %s%C(green)% (trailers:key=co-authored-by,valueonly,separator=%x2C )%Creset'
sd = difftool --dir-diff HEAD~ HEAD
s = status
ss = show --name-status --abbrev-commit
c = commit -m
ca = commit --amend --no-edit
cae = commit --amend
caa = commit --amend --reset-author --no-edit
cc = commit -c
co = checkout
cob = checkout -b
ri = rebase -i
rc = rebase --continue
ra = rebase --abort
site = !start $(git config remote.origin.url)
conf = config --global --list --show-origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment