Skip to content

Instantly share code, notes, and snippets.

@midu
Created October 24, 2013 15:14
Show Gist options
  • Save midu/7139017 to your computer and use it in GitHub Desktop.
Save midu/7139017 to your computer and use it in GitHub Desktop.
export GIT_EDITOR='subl -w'
alias gb='git branch -a -v' # lists all branches and the latest commit for each
alias gs='git status' # less typing
alias gca='git commit -av' # adds all local changes, opens your editor for commit message, and shows diff of commit
alias grm='git ls-files --deleted | xargs git rm' # stages all file deletions at once
alias gcm='git checkout master' # less typing
alias gpr='git pull --rebase' # less typing, more rebasing
alias gspr='git stash; gpr; git stash apply' # useful for keeping local changes across a rebase
alias pull='git pull --rebase' # less typing, more rebasing
alias push='git push' # less typing
alias gitl='git log --pretty=format:"%h %Cblue %an %Cred %s"' # easy to scan log
alias gd='git diff | subl --new-window'
alias gst='open "http://poker-carredas.com/?page=lol&lol=22"'
alias gpt='git' # lol
alias got='git'
alias gls='git ls-files'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment