Somehow, my global git (msysgit) settings for user.name and user.email (and god knows what else) are set to a recent ex-colleague’s details.
When I try and change them i get could not commit to u://.gitconfig
If I try and create u://.gitconfig through git bash then i get permission denied.
C:\Users\<My Username>\
contains no references to git.
I’ve tried uninstalling, searching the registry and my file system for all references to git and I can’t find any (windows file search is crap though).
What the hell is going on? Why even after reinstalling are this guys details still the global settings???
Thanks
The global gitconfig is store at the
$HOMElocation (in the Git bash session).Is it possible you have a
$HOME(or %HOME% in DOS session) referencingu:\.If so, simply
set HOME=%HOMEPATH%(if you haveHOMEPATHdefined like in Windows 7), and you should be able to resume accessing/updating your global Git configuration.The OP adds:
Well actually no, since
HOMEis not a environment variable usually set by Windows (Xp, Vista or 7).That is the right fix, although fixing
HOMEPATH(even if that doesn’t directly involve Git) would be also advisable (it shouldn’t refer tou:\).