Skip to content

Instantly share code, notes, and snippets.

@nickytonline
Last active February 17, 2021 03:34
Show Gist options
  • Star 30 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nickytonline/128d7d164d1eea5daba6753ed0829f41 to your computer and use it in GitHub Desktop.
Save nickytonline/128d7d164d1eea5daba6753ed0829f41 to your computer and use it in GitHub Desktop.
Git Aliases
alias.a add .
alias.aliases config --get-regexp alias
alias.bi bisect
alias.ci commit -m
alias.co checkout
alias.colast checkout -
alias.db branch -D
alias.laf fsck --lost-found
alias.last log -1 HEAD
alias.nb checkout -b
alias.pror remote prune origin
alias.pr pull --rebase
alias.pf push --force-with-lease
alias.psu push --set-upstream
alias.ra rebase --abort
alias.rc rebase --continue
alias.remotes remote -v
alias.renb branch -m
alias.rhh reset --hard HEAD
alias.rh reset --hard
alias.s status -s
alias.stashes stash list
alias.unstash stash pop
alias.vc clean -dfx
alias.refactor commit -m 👷Refactor
alias.formatting commit -m 💅Formatting
alias.comments commit -m 📒Comments
alias.tests commit -m ✅Tests
alias.prum pull --rebase upstream master
alias.mend commit --amend
@nickytonline
Copy link
Author

Here's one to rename a local branch as I never remember the syntax: renb = branch -m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment