Skip to content

Instantly share code, notes, and snippets.

@nnja
Created October 2, 2017 01:46
Show Gist options
  • Save nnja/54ffb43e771fd3c93e680a3a42c9a30e to your computer and use it in GitHub Desktop.
Save nnja/54ffb43e771fd3c93e680a3a42c9a30e to your computer and use it in GitHub Desktop.
Command line aliases for git
alias ga='git add'
alias gp='git push'
alias gpu='git pull'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias gm='git commit -m'
alias gc='git checkout'
@nnja
Copy link
Author

nnja commented Oct 2, 2017

Add these time saving aliases to your .bashrc file, then run source ~/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment