DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

4

How do YOU configure Git for Windows?

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

Top comments (3)

Collapse
 
renardfute profile image
RenardFute

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

  • git config --global user.name "Your Name"
  • git config --global user.email "your.name@example.com"

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

Collapse
 
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.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Please elaborate.

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

Do you

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay