Skip to content

Instantly share code, notes, and snippets.

@adam-edison
Last active September 12, 2023 19:52
Show Gist options
  • Save adam-edison/597825f7e1256abb4ac713ef32b594a2 to your computer and use it in GitHub Desktop.
Save adam-edison/597825f7e1256abb4ac713ef32b594a2 to your computer and use it in GitHub Desktop.
git config preferences
# Configuration
## On All
git config --global user.email "your_example@example.com"
git config --global user.name "Your Name"
git config --global push.default current
git config --global core.commentchar "*" # optional
git config --global core.safecrlf false
git config --global core.excludesfile ~/.gitignore
git config --global push.autoSetupRemote true
## On Windows
git config --global core.autocrlf true
git config --global core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
## On Unix/Linux
git config --global core.autocrlf input
git config --global core.editor "gedit -s"
## On Mac
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
git config --global core.editor "subl -n -w"
# Checking Configuration
git config --edit --global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment