1

$ git config --list --global

fatal: unable to read config file '%USERPROFILES%/.gitconfig': No such file or directory

.gitconfig is already present in the %USERPROFILES%

But it keeps giving me the above message.

Taher A. Ghaleb
  • 5,120
  • 5
  • 31
  • 44
Sam_2207
  • 2,759
  • 2
  • 9
  • 15

1 Answers1

0

%USERPROFILES% does not exist.
%USERPROFILE% does.

Try and re-install Git for Windows, possibly through the portable version (an archive you can uncompress anywhere you want, and which is not a malware), and a simplified PATH. Then check in that session (the one with said simplified path) if the issue persists.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250