私はunstagedファイルにmavenファイルmvnw.cmd
を持っていますが、実際の変更はありません。それは私には、すべての行が削除して追加するようにマークされているので、EOLと関係があります。EOL Windows上の.cmd-fileのGITに関する問題8.1
私はGITから再びそれを削除して出すためにすでに試みました。私はそれを隠そうとしましたが、それはまだunstagedファイルとして残っています。
.gitattributes
ファイル:
# Auto detect text files and perform LF normalization
* text=auto
# Make sure that the line ending style ist set to Linux for shell scripts
*.sh eol=lf
# Make sure that the line ending style ist set to Windows for bat scripts
*.bat eol=crlf
*.cmd eol=crlf
は、事前にありがとうございます。
いいえ、そのファイルはリポジトリにどのような行末がありますか? 'hexdump'や、行末や16進数を表示するエディタを使用してください。リポジトリに不正な行末が含まれている可能性があります。これは 'gitattributes'に加えて修正する必要があります。 –