x-yy7g
Last Updated: February 25, 2016
·
1.451K
· james2doyle

Git Aliases

Some of my git aliases that I have created

I tried not to repeat anything that may already be out there

# remove files that are not under version control
alias gcf="git clean -f"
# discard changes in the working directory
alias gcod="git checkout -- ."
# grab the latest upstream version
alias gpum="git pull upstream master"
# delete branch from github. follow with branch name
alias gpod="git push origin --delete"
# show git status without untracked files
alias gsu="git status -uno"

1 Response
Add your response

2923

Are you sure you want to alias destructive calls to such simple commands? Personally, I leave those out of my aliases because I want to make sure I know what I'm doing before issuing those commands.

over 1 year ago ·