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
  • 4,810
  • 5
  • 27
  • 41
Sam_2207
  • 2,119
  • 2
  • 7
  • 12

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,129,465
  • 480
  • 4,036
  • 4,755