Created
January 21, 2012 02:22
-
-
Save gwing33/1650826 to your computer and use it in GitHub Desktop.
My git shortcuts in my ~/.bash_profile
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 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' |
Ooooh, I'll have to add some of those in! Thanks.
i get "-bash: "git: command not found" " any ideas?
@JGVB looks to me like you don't have git installed, or it's not globally visible
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
I also like:
alias gst='git status -sb'
alias gd='git diff --relative --no-prefix | e'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gl="git log --oneline --reverse"