Skip to content

Instantly share code, notes, and snippets.

@rsln-s
Created April 21, 2022 14:27
Show Gist options
  • Save rsln-s/053e392ce71947a3c3acb5b110f34100 to your computer and use it in GitHub Desktop.
Save rsln-s/053e392ce71947a3c3acb5b110f34100 to your computer and use it in GitHub Desktop.
Bash git shortcut
#git
alias gs="git status"
alias ga="git add"
alias gd="git diff"
alias nd="nbdiff --ignore-outputs --ignore-metadata --ignore-details"
alias gch="git checkout HEAD"
function gc(){
git commit -m "$*" && git push origin HEAD
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment