-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gitattributes and fix line endings #159
Add gitattributes and fix line endings #159
Conversation
Marco I have investigated this and discussed with you already some time ago. https://github.com/WouterJD/FortiusANT/wiki/FortiusANT-development-guidelines#new-lines Please check whether that is correct. My idea is:
Perhaps would be good to have @SwitchaBLE and @cyclingflow approve this PR Is that the way to go to avoid issues? Also, would it be "safer" to exclude all files that we definitely want untouched:
|
@WouterJD i read the page and it looks good to me. Just one remark: When a branch does not have the .gitattributes yet, but master does, the branch must not commit it. This way, you get the line endings up-to-date and prevent a merge conflict on the .gitattributes file. Indeed this branch is outdated, i'll update it to master. |
b0a72c6
to
f4c37e9
Compare
Branch should be up to date with master now. I included your suggestion regarding binary files, however i replaced |
Regarding the wiki page, did you also have a look at this? https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/setting-guidelines-for-repository-contributors |
Fixing the line breaks seems like a good idea to me. Now that master branch is fixed, I will fix my development branches as well. |
Line endings were not automatically handled by git yet, causing files in the repository to not have consistent line endings. This can cause annoying problems with pull requests. By adding the .gitattributes file to the repository this problem will be solved since all clients will now treat line endings the same way.
See https://docs.github.com/en/free-pro-team@latest/github/using-git/configuring-git-to-handle-line-endings for more information regarding .gitattributes.