Skip to content

Instantly share code, notes, and snippets.

@pluma
Last active April 11, 2016 22:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pluma/66087607a3ff8bcf5cfd3f29cdb457bb to your computer and use it in GitHub Desktop.
alias g='git status -sb'
alias ga='git add'
alias gac='git commit -S --amend'
alias gb='git branch'
alias gbb='git checkout -b'
alias gbm='git branch --merged'
alias gbn='git branch --no-merged'
alias gc='git commit -S -m'
alias gcp='git cherry-pick'
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gg='git status'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias gla='git log --all --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias ggpublish='git push && git push --tags && npm publish'
alias gp='git pull --rebase && git push'
alias gpp='git push && git push --tags'
alias gpl='git pull --rebase --prune'
alias gpt='git pull --rebase && git push --tags'
alias grb='git rebase'
alias grc='git rebase --continue'
alias gsp='git stash ; gp ; git stash pop'
alias n='npm run'
alias filesize='wc -c'
alias killkill='pgrep -u`whoami` | xargs kill -9'
gq() {
git show ":/$1"
}
glv() {
local TITLE=$1
if [ -z TITLE ]; then
TITLE=ArangoDB
fi
gource --title "$TITLE" --hide filenames -f -1920x1080 --font-size 24 --user-image-dir .git/avatar/ --seconds-per-day 0.1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment