私たちはMacを持っている数人のプロジェクトに取り組んでおり、私はWindowsで実行しています。改行に関していくつかの問題が発生します。
私はこれを追加できることをGitHubで読みました:
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
.gitattributesに
しかし、そのファイルをGitHubにコミットして、Macを使用している他の人が同じ設定を取得できるようにする必要がありますか?
重要な場合は、Webサイトをコーディングしています。(PHP、JavaScriptファイルなど)。
ちなみに、Windowsを使用しているのは私だけです...そうですね、何ができますか?