問題 :これが実際のコードの違い@@ -1,202 +1,251 @@
です。このファイルは完全に置き換えられているため、github のコミットで表示されます。githubで下の画像のようなコードの違いを見たいです。
システム情報: Windows 8.1 で崇高なテキスト 2 と Windows 7 で phpdesigner 7 を使用してコードを編集しています。
解決策、コミットする前に試しました:
- エディターの行の書式設定を windows/unix/macOSx に変更しました
- 私の .gitattribute に追加されました
* text=auto
dos2unix
&unix2dos
コマンドも試しました- 不思議なことに、vi を使って編集するとうまくいきます。しかし、私はそれを使うのが苦手です。
私の .gitattribute :
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# 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
ありがとう。