x-yy7g
Last Updated: February 25, 2016
·
1.404K
· james2doyle
406952 10151308091355050 1199291037 n

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"
Say Thanks
Respond

1 Response
Add your response

2923
C8326f8f8ec51f2a1e5eb5d5fa6e4f33

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 ·
Filed Under