Last active
December 30, 2019 10:03
-
-
Save kohendrix/020a5515db2138cb3b5759e84a98dbdb to your computer and use it in GitHub Desktop.
git command aliases to be included in .bashrc or profile and such
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git | |
| alias gpull="git pull" | |
| alias gpullr="git pull --rebase" | |
| alias gpush="git push" | |
| alias gpushf="git push --force-with-lease" | |
| alias gcm="git commit -m" | |
| alias gca="git commit --amend" | |
| alias gs="git status" | |
| alias gaa="git add -A" | |
| alias ga="git add" | |
| alias gdf="git diff" | |
| alias branches="git branch -a" | |
| alias cleanbr="sh $HOME/scripts/clean_branches.sh" | |
| alias gco="git checkout" | |
| alias grb="git rebase" | |
| alias grbc="git rebase --continue" | |
| alias grbs="git rebase --skip" | |
| alias prunelist="git remote prune origin --dry-run" | |
| alias prune="git remote prune origin" | |
| alias stashes="git stash list" | |
| alias unstash="git stash apply" | |
| alias stashd="git stash drop" | |
| alias stash="git stash -u" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment