DEV Community


How do YOU configure Git for Windows?

patarapolw profile image Pacharapol Withayasakpunt ・1 min read

Most of the problems come from Windows not being POSIX compliant, I guess. None of these problems in macOS or Linux.


Editor guide
renardfute profile image

Normally it will work just after installation. But if you want to go further you can configure it with:

  • git config --global "Your Name"
  • git config --global ""

You can check this if you want to setup your SSH agent: click here

thefluxapex profile image
Ian Pride

I push and pull cross platform software often back and forth from Linux to Windows and vice-versa and the only problem I've ever had were with line endings; which, is easily fixable by using core.eol correctly.

patarapolw profile image
Pacharapol Withayasakpunt Author

Please elaborate.

So, you didn't configure correctly immediately on first install.

Do you

  • Edit .git/config
  • Edit ~/.gitconfig
  • Use git config --global ?