Skip to content

Instantly share code, notes, and snippets.

@bigfang
Created January 19, 2020 03:39
Show Gist options
  • Select an option

  • Save bigfang/b3ac48c0471e090d5d7f72d8e9ba51a7 to your computer and use it in GitHub Desktop.

Select an option

Save bigfang/b3ac48c0471e090d5d7f72d8e9ba51a7 to your computer and use it in GitHub Desktop.

Revisions

  1. bigfang created this gist Jan 19, 2020.
    12 changes: 12 additions & 0 deletions gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    git config --global alias.co checkout
    git config --global alias.br branch
    git config --global alias.ci commit
    git config --global alias.st status
    git config --global alias.ss stash
    git config --global alias.sp "stash pop"
    git config --global alias.sl "stash list"
    git config --global alias.sa "stash apply"
    git config --global alias.cp cherry-pick
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    git config --global alias.c1 "checkout HEAD^"
    git config --global alias.r1 "reset HEAD^"