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"
Written by James Doyle
Related protips
1 Response
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#