Reset git template path
git, github
Solution
You can remove it using the following:
git config --global --unset-all commit.template
I'm not sure how you ended up with multiple values in there. When I call `git config commit.template foo.txt`, it overwrites the previous value.
The only way I could reproduce your issue was by using `git config --add commit.template foo.txt`, which seems to add a second value.
If you don't want to use command line, you can also edit your global git configuration file with a text editor. It probably includes a section like the following:
[commit]
template = template2.txt
template = template.txt
Problem
I am trying to set git template path as : ``` – git config --global commit.template <path to template> ``` For the very first attempt i enter wrong path and cannot reset the path again i am getting below error : ``` warning: commit.template has multiple values error: cannot overwrite multiple values with a single value Use a regexp, --add or --replace-all to change commit.template. ``` Hence I am not able to do `git commit`. Edit : Initally i executed : ``` – git config --global commit.template E:/mygit ``` where my git is just folder and i forgot to mention file name Next time i executed : Any pointer to my query would be appreciated.