I encountered the above problem, for convenience, I will use a small example to recreate the scene
nick@nick-linux:~/Desktop/bugtest$ git init Initialized empty G