This has nothing to do with Git. The problem is that you should not create a Git repository in the User/your_name folder, but create a new folder. Many software will store configurations in the AppData hidden folder in this directory, and the system will also store the HKCU registry, etc. in this folder.
This has nothing to do with Git. The problem is that you should not create a Git repository in the User/your_name folder, but create a new folder. Many software will store configurations in the AppData hidden folder in this directory, and the system will also store the HKCU registry, etc. in this folder.
Even so, you can also use .gitignore to ignore those files
Of course, the final analysis is that you should not create the Git repository in the user folder