Skip to content

Instantly share code, notes, and snippets.

@ni-c
Created September 25, 2014 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ni-c/e469a3150f9728647ff2 to your computer and use it in GitHub Desktop.
Save ni-c/e469a3150f9728647ff2 to your computer and use it in GitHub Desktop.
git cheats
# Set global gitignore to ~/.gitignore
git config --global core.excludesfile '~/.gitignore'
# Git ignore mode chamges
git config --global core.filemode false
# Enable colors
git config --global color.ui true
# Set your user name and email address with the following commands:
git config --global user.name "John Doe"
git config --global user.email "your_email@example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment