When I run "git config --system core.longpaths true" in CMD I get an error "could not lock config file %HOMEDRIVE%%HOMEPATH%/.gitconfig: No such file or directory". I know that the reason is that my .gitconfig file is located not in a default path.
Is there any way to solve this? Can I pass somehow path to my config file?