Skip to content

Instantly share code, notes, and snippets.

@gwing33
Created January 21, 2012 02:22
Show Gist options
  • Save gwing33/1650826 to your computer and use it in GitHub Desktop.
Save gwing33/1650826 to your computer and use it in GitHub Desktop.
My git shortcuts in my ~/.bash_profile
# Git Shortcuts
alias gs='git status'
alias gst='git status -sb'
alias ga='git add'
alias gau='git add -u' # Removes deleted files
alias gp='git pull'
alias gpu='git push'
alias gc='git commit -v'
alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment
alias gco='git checkout'
alias gl='git log --oneline'
@gwing33
Copy link
Author

gwing33 commented Jan 21, 2012

Ooooh, I'll have to add some of those in! Thanks.

@JGVB
Copy link

JGVB commented May 16, 2016

i get "-bash: "git: command not found" " any ideas?

@sotrh
Copy link

sotrh commented Jul 26, 2016

@JGVB looks to me like you don't have git installed, or it's not globally visible

@theBiker89
Copy link

I usually use also:
alias tree='git log --graph --decorate --oneline'
alias revert='git checkout --'

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