Skip to content

Instantly share code, notes, and snippets.

@krzysu
Last active May 22, 2024 10:53
Show Gist options
  • Save krzysu/dab7b1263073f7e2a4b85b30b7ca2e62 to your computer and use it in GitHub Desktop.
Save krzysu/dab7b1263073f7e2a4b85b30b7ca2e62 to your computer and use it in GitHub Desktop.
git aliases
[user]
name = NAME
email = EMAIL
[alias]
co = checkout
ci = commit
s = status
br = branch
pl = pull --rebase --autostash
ps = push
psf = push --force-with-lease
aa = !git add . && git add -u
rh = reset HEAD
prune-origin = !git remote prune origin
[push]
default = simple
autoSetupRemote = true
[pager]
branch = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment