Skip to content

Instantly share code, notes, and snippets.

@lcasartelli
Created May 14, 2015 15:02
Show Gist options
  • Save lcasartelli/1ebe927d89fbc1c14753 to your computer and use it in GitHub Desktop.
Save lcasartelli/1ebe927d89fbc1c14753 to your computer and use it in GitHub Desktop.
Shell aliases (require tig)
alias g="git"
alias ga="git add"
alias gaa="git add -A ."
alias gb="git branch"
alias gc="git commit"
alias gcam="tig status; git commit --amend"
alias gce="git commit --allow-empty"
alias gcl="git clone"
alias gcm="git commit -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gg="tig status && git commit"
alias gl="git log --pretty='format:%Cgreen%H%Creset %an %Cblue%aD%Creset - %s' --graph"
alias gll="git pull"
alias gm="git merge --no-ff"
alias gp="git push"
alias gpa="git push --all"
alias gph="git push heroku master"
alias gpom="git push -u origin master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment