Skip to content

Instantly share code, notes, and snippets.

@samsour
Created September 20, 2021 11:00
Show Gist options
  • Save samsour/7902f2ebf29502707612957306189b3f to your computer and use it in GitHub Desktop.
Save samsour/7902f2ebf29502707612957306189b3f to your computer and use it in GitHub Desktop.
Bash aliases
alias lg="git log --pretty=format:'%h %an, %ar: %s' --graph"
alias nah="git reset --hard && git clean -df"
alias squash="git rebase -i HEAD~2"
alias new="git checkout -b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment