![]() ![]() Only the existing values that match the pattern are updated or unset. If you want to update or unset an option which can occur on multiple lines, a value-pattern (which is an extended regular expression, unless the -fixed-value option is given) needs to be given. ![]() Multiple lines can be added to an option by using the -add option. The name is actually the section and the key separated by a dot, and the value will be escaped. You can query/set/replace/unset options with this command. Git config -l | -list git config -get-color Edit the global Git configuration in the default editor: git config -global -edit.Edit the Git configuration for the current repository in the default editor: git config -edit.Revert a global configuration entry to its default value: git config -global -unset alias.unstage.Set the global value of a given configuration entry: git config -global alias.unstage "reset HEAD -".Get the value of a given configuration entry: git config alias.unstage.List only system configuration entries (stored in /etc/gitconfig), and show their file location: git config -list -system -show-origin.List only global configuration entries (stored in ~/.gitconfig): git config -list -global.git/config in the current repository): git config -list -local List only local configuration entries (stored in.Get and set repository or global options Examples (TL DR)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |