Skip to content

Instantly share code, notes, and snippets.

@henryw374
Created November 16, 2018 12:12
Show Gist options
  • Save henryw374/487ad79bbcf59bc0bf79e5f26e348d3c to your computer and use it in GitHub Desktop.
Save henryw374/487ad79bbcf59bc0bf79e5f26e348d3c to your computer and use it in GitHub Desktop.
some git aliases
alias commit='git commit -a -m '
alias glog='git log --pretty=oneline'
alias glog='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"'
alias gsoft='git reset --soft HEAD~1'
alias gshowf='git show --name-only'
alias gshow='git diff-tree --no-commit-id --name-only -r '
alias gint='git rebase --interactive '
alias ginto='git rebase --interactive origin/master'
alias rgc='git rebase --continue'
alias rga='git rebase --abort'
alias rgs='git rebase --skip'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment