When running the git init command in a completely new and empty directory, I get this error message:
Reinitialized existing Git repository in /<just path stuff>/gittests/completelyEmptyDirectory/.git/
What is going on here? The only commands being run are mkdir completelyEmptyDirectory, going into that directory, and then running git init.
After investigating further the reason this was happening is because in my
.gitconfigthe[init]section was pointing to my.git_templatesfolder. The templates folder contains only one file called HEAD that had this:Not sure exactly why this was causing the error above.
Replacing that line with:
resolved the issue. Still would like to figure out why the
[init]was set to point to the.git_templatesin the first place.