Skip to content

Instantly share code, notes, and snippets.

@martialboniou
Created July 22, 2013 15:18
Show Gist options
  • Save martialboniou/6054671 to your computer and use it in GitHub Desktop.
Save martialboniou/6054671 to your computer and use it in GitHub Desktop.
git snippets
() {
local NAME="My NAME"
local EMAIL=my@email.com
git config --global user.name "$NAME"
git config --global user.email $EMAIL
git commit --amend --reset-author
git config --global credential.helper cache
git config --global alias.st status
git config --global alias.rl reflog
git config --global alias.ci commit
git config --global alias.co checkout
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment