I found the problem. When I first built a solution for the project, the generated .sln file was not in the same directory as the project file itself. The project file was placed under /github/workfolder, and the generated .sln The files are generated by default under /visual studio 2013/projects, so when using VS to create git, it will prompt that some files are not in the directory. During subsequent updates, only git is created for the /projects directory, and the updated files are only .sln files. . Later, I deleted the repository and solutions in the /projects directory, re-created solutions for the projects in /workfolder and put them together. After that, VS automatically recognized git in the same directory and was able to push and synchronize them. In short, the problem lies in the .sln file that is easily ignored.
I found the problem. When I first built a solution for the project, the generated .sln file was not in the same directory as the project file itself. The project file was placed under /github/workfolder, and the generated .sln The files are generated by default under /visual studio 2013/projects, so when using VS to create git, it will prompt that some files are not in the directory. During subsequent updates, only git is created for the /projects directory, and the updated files are only .sln files. . Later, I deleted the repository and solutions in the /projects directory, re-created solutions for the projects in /workfolder and put them together. After that, VS automatically recognized git in the same directory and was able to push and synchronize them. In short, the problem lies in the .sln file that is easily ignored.