Skip to content

Instantly share code, notes, and snippets.

@jonasem
Last active October 8, 2018 08:45
Show Gist options
  • Save jonasem/a06202b3ff092eafa3a6 to your computer and use it in GitHub Desktop.
Save jonasem/a06202b3ff092eafa3a6 to your computer and use it in GitHub Desktop.
aliases
alias gaa="git add --all ."
alias gac="git add --all . && git commit -m"
alias gb="git branch"
alias gc='git commit -m'
alias gco='git checkout'
alias gd='git diff'
alias gds='git diff --staged'
alias gf='git fetch'
alias glg='git log --oneline --decorate --color --graph --max-count=8'
alias gpl='git pull'
alias gpr='git pull --rebase'
alias gps='git push'
alias grhh='git reset HEAD --hard'
alias gst='git status -sb'
alias gsu='git submodule update'
#git config --global push.default simple
__git_complete gco _git_checkout
__git_complete gc _git_commit
__git_complete gb _git_branch
__git_complete gpl _git_pull
__git_complete gd _git_diff
__git_complete gf _git_fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment