Git is reading a stale template path. This path used to be in my older VM. I had copied this git directory as it is to a new VM.
I tried removing "[commit] template" entry from ~/.gitconfig
, followed by git commit
but it still gives me this error.
Then I tried removing all entries but to no avail.
$ git config --global --unset-all commit.template
$ git commit
fatal: could not read '/home/subtleseeker/main/commit-template.txt': No such file or directory
Any idea, where git is reading this path from?
$ git config --global commit.template /home/peeches/main/commit-template.txt
$ git config -l | grep template
commit.template=/home/peeches/main/commit-template.txt
commit.template=/home/subtleseeker/main/commit-template.txt
$ git config --global --unset-all commit.template
$ git config -l | grep template
commit.template=/home/subtleseeker/main/commit-template.txt
Git version: git version 2.30.1
OS: CentOS Linux release 7.9.2009 (Core)