Skip to content

Instantly share code, notes, and snippets.

@berkgaut
Last active January 29, 2025 09:52
Show Gist options
  • Save berkgaut/57e32559fcf70843ad24c9fabbb59749 to your computer and use it in GitHub Desktop.
Save berkgaut/57e32559fcf70843ad24c9fabbb59749 to your computer and use it in GitHub Desktop.
gitconfig with CLI-friendly aliases
[alias]
co = checkout
br = branch --sort=-committerdate
camend = commit --amend --reuse-message=HEAD
st = status
ll = log --pretty=format:\"%h - %an, %ad: %s\" -10
pushnew = push --set-upstream origin HEAD
pushfwl = push --force-with-lease
resethd = reset HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment