Skip to content

Instantly share code, notes, and snippets.

@tostercx
Created April 15, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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