End of Line character management - .gitattributes ? #640
ChrisNolan
started this conversation in
Ideas
Replies: 1 comment
-
|
I'm not too familiar with that but if it helps, I'm all for it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I did my first modification to the source today - go me! 🎉
One of the challenges I experienced setting up my development environment (following this document ) was my local machine by default checked out the scripts with 'CRLF', but when I went to run those scripts inside of the docker container, it errored because of the "\r"s that were in there.
I was able to resolve this by
git config core.autocrlf inputand re-checking out the project.How do people feel though about setting up a ".gitattributes" file that could 'force' these types of settings on the project as a whole?
This is 'new' to me, but when i was looking into how to resolve my issue it was suggested that using this file was a common practice? Some templates are here if you'd like to review.
Here is a blog post about .gitattributes for consideration as well.
Beta Was this translation helpful? Give feedback.
All reactions