git-config

Get and set repository or global options

copy
2
0
change an entry in the configgit config core.gitproxy '"ssh" for kernel.org' 'for kernel.org$'The hypothetical proxy command entries actually have a postfix to discern what URL they apply to. Here is how to change the entry for kernel.org to "ssh". This makes sure that only the key/value pair for kernel.org is replaced.

5 years, 3 months ago george 4 |

copy
2
0
replace all core.gitproxy with a new onegit config --replace-all core.gitproxy sshIf you like to live dangerously, you can replace all core.gitproxy by a new one

5 years, 3 months ago george 4 |

copy
1
0
change the filemodegit config core.filemode trueyou can set the filemode to true with

5 years, 3 months ago george 4 |

copy
0
0
get all config values form a multivar git config --get-all core.gitproxyIf you want to know all the values for a multivar

5 years, 3 months ago george 4 |

copy
0
0
get a value from the git configgit config --get core.filemodeTo query the value for a given key

5 years, 3 months ago george 4 |

copy
0
0
delete an entry in the git configgit config --unset diff.renamesTo delete the entry for renames If you want to delete an entry for a multivar (like core.gitproxy above), you have to provide a regex matching the value of exactly one line.

5 years, 3 months ago george 4 |