Skip to content

Instantly share code, notes, and snippets.

@tostercx
Created April 15, 2020 14:41
Show Gist options
  • Save tostercx/126dcf2ac4a047e8fc9e2b4a639d7a69 to your computer and use it in GitHub Desktop.
Save tostercx/126dcf2ac4a047e8fc9e2b4a639d7a69 to your computer and use it in GitHub Desktop.
linux git shortcuts
alias gs='git status'
alias gp='git push'
gc() {
git commit -m "$*"
}
ga() {
git add $*
}
gx() {
git update-index --chmod=+x $*
}
gr() {
cd $(git rev-parse --show-toplevel)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment