Last active
September 12, 2023 19:52
-
-
Save adam-edison/597825f7e1256abb4ac713ef32b594a2 to your computer and use it in GitHub Desktop.
git config preferences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration | |
## On All | |
git config --global user.email "[email protected]" | |
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