- October 15, 2006
- 56
- 34
- 49
- Home Country
-
Canada
I'm new to github and am attempting to make my first pull request to mediaportal using Github for windows. I forked mediaportal, cloned the fork to my machine, made my changes, and committed the changes locally. At this point, the diffs still looked good. However, when I synced the commit with github, my commits changed to whole file changes even though the majority of the file looks the same. I assume this because of line ending inconsistencies.
Github for windows puts out a warning that mediaportal's line endings aren't normalized. It recommends adding a .gitattributes file that contains
It also wants to go ahead and normalize the line endings in all the files.
Would there be support for this change? Or is there something I'm doing wrong?
Not sure how many people are using github for windows.
Any guidance is appreciated.
Thanks,
Clint
Github for windows puts out a warning that mediaportal's line endings aren't normalized. It recommends adding a .gitattributes file that contains
Code:
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
It also wants to go ahead and normalize the line endings in all the files.
Would there be support for this change? Or is there something I'm doing wrong?
Not sure how many people are using github for windows.
Any guidance is appreciated.
Thanks,
Clint
Last edited: