Tips:
- Use
--global
to set options globally (for all repos) for the current user. - Use
--system
(viasudo
orsu
) to set options for all users.
git config --global core.editor "nano"
git config --global pull.ff "only"
git config --global merge.ff "only"
git config --global core.filemode false
For Windows, the global
settings are saved in $env:USERPROFILE\.gitconfig
.
Example:
[core]
editor = nano
filemode = false
git config --global core.editor "nano"
git config pull.ff "only"
git config merge.ff "only"
This new default setting can be overridden with the --no-ff
option for both commands.
Tell git to ignore the executable bit differences between the index and the working copy. This is enable to "enabled" or "true" by default and is a frequent source of minor problems related to script permissions.
git config core.filemode false
- local/repo:
git config --local --list
- global (user specific):
git config --global --list
- system (all users):
git config --system --list
- everything:
git config --list
As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!