This is usually caused by a permission error.
And thus it makes sense that one developer is able to use git while the other one isn't.
Check your folder (git repository folder) permissions and verify that the given user is able to write content to this folder. (check the permissions on the given folder and its parent)
Another option (might be but less likely) is that the antivirus is blocking you from changing the folder