Skip to content

Instantly share code, notes, and snippets.

@autonomousapps
Created December 6, 2021 18:43
Show Gist options
  • Save autonomousapps/1df2bf3644c0208b4a367d15643e4885 to your computer and use it in GitHub Desktop.
Save autonomousapps/1df2bf3644c0208b4a367d15643e4885 to your computer and use it in GitHub Desktop.
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
alias.last log -1 HEAD
alias.unstage reset HEAD --
alias.amend commit --amend --no-edit
alias.co checkout
alias.alias config --get-regexp ^alias\.
alias.st status
alias.up push --force-with-lease
alias.aa !git add . && git commit --amend --no-edit
alias.fix !git add . && git commit --amend --no-edit && git push --force-with-lease
alias.squash !git rebase -i --autosquash
alias.nb !ga() { git checkout -b trobalik/$1; }; ga
alias.db !ga() { git branch -D $1; }; ga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment