Skip to content

Instantly share code, notes, and snippets.

@mikecentola
Last active September 12, 2025 22:36
Show Gist options
  • Select an option

  • Save mikecentola/6d4f70e9a937bc067759ca8ce7bc84a4 to your computer and use it in GitHub Desktop.

Select an option

Save mikecentola/6d4f70e9a937bc067759ca8ce7bc84a4 to your computer and use it in GitHub Desktop.
Git Config with Aliases
[commit]
template = ~/.gitmessage
[tag]
gpgsign = true
[alias]
st = status
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
brd = branch -d
co = checkout
cob = checkout -b
com = checkout main
ci = commit -S
di = diff
fch = fetch
last = log -1 HEAD
lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(green)(%cr) [%an]\" --abbrev-commit -30
pll = pull
psh = push --tags
sl = shortlog
tg = tag -s -a
undo = reset HEAD~1 --mixed
[winUpdater]
recentlySeenVersion = 2.25.0.windows.1
[pull]
rebase = true
[init]
defaultBranch = main
[color]
ui = auto
[fetch]
prune = true
[diff]
colorMoved = zebra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment