Editing Git config
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
<code>git config</code> get and set [[repository]] or global options | <code>git config</code> get and set [[repository]] or global options | ||
* Doc: https://git-scm.com/docs/git-config | * Doc: https://git-scm.com/docs/git-config | ||
− | * Configuration | + | * Configuration file: <code>[[$HOME/.gitconfig]]</code> |
− | |||
− | |||
* <code>[[git config --list]]</code> | * <code>[[git config --list]]</code> | ||
− | * <code>[[git config --list --show-origin]]</code> | + | *<code>[[git config --list --show-origin]]</code> |
* <code>[[git config --global]]</code> | * <code>[[git config --global]]</code> | ||
* <code>[[git config --global --list]]</code> | * <code>[[git config --global --list]]</code> | ||
* <code>[[git config --global --edit]]</code> | * <code>[[git config --global --edit]]</code> | ||
− | |||
* Set your username: | * Set your username: | ||
Line 20: | Line 17: | ||
* <code>[[git config --local]] [[credential]].[[helper]]</code> "" (will prompt for username and password) | * <code>[[git config --local]] [[credential]].[[helper]]</code> "" (will prompt for username and password) | ||
− | + | ||
Turn off the [[SSL]] validation | Turn off the [[SSL]] validation | ||
− | * <code> | + | * <code>git config --global http.sslVerify false</code> |
Line 45: | Line 42: | ||
git config gc.auto 0 | git config gc.auto 0 | ||
− | |||
− | |||
== [[Usage: git config]] == | == [[Usage: git config]] == | ||
− | == Related == | + | == Related commands == |
* <code>[[git fsck]] --full</code> | * <code>[[git fsck]] --full</code> | ||
* <code>[[git push]]</code> | * <code>[[git push]]</code> | ||
* <code>[[git config --global credential.helper cache]]</code> | * <code>[[git config --global credential.helper cache]]</code> | ||
* <code>[[git remote]]</code> | * <code>[[git remote]]</code> | ||
− | |||
== See also == | == See also == | ||
* {{git config}} | * {{git config}} | ||
+ | * {{git}} | ||
+ | |||
[[Category:Gi]] | [[Category:Gi]] |
Advertising: