tread
tread

Reputation: 11108

Hints to using Git on a Windows PC for a project coded and managed with Unix?

I am the only person on a Windows computer to code on a project. The rest are using Unix computers.

The server is also Unix-based. What precautions do I need to take regarding setting up Git? And In particular the part where it provides the 3 line-ending options…

Upvotes: 0

Views: 38

Answers (1)

user456814
user456814

Reputation:

It kind of depends on what tools you and your colleagues are using. Since you're the only person using Windows, I'm assuming that the codebase is already using Unix-style line-feeds instead of Windows-style carriage-return + line-feeds.

If that is the case, then you can either work locally with Windows line-endings and have Git automatically convert text files to Unix style when you commit, or you can work with Unix line-endings locally, and just set your editor to use them.

To have Git automatically convert Windows style endings to Unix style, use

git config core.autocrlf true

Upvotes: 1

Related Questions