simulink添加slx文件到工程,报错,请教如何解决
조회 수: 3 (최근 30일)
이전 댓글 표시

댓글 수: 1
답변 (1개)
Sivsankar
2025년 1월 21일
I assume that you are encountering an issue while trying to add a file to the Git repository from within MATLAB.
If you have a ".gitattributes" file in the Git repository, try deleting this file and see if you are then able to add the files. If this resolves the issue, check if the following line is present in the ".gitattributes" file:
* text=auto eol=crlf
The first part of the line (* text=auto) ensures that text files introduced by any contributor to the repository have their line endings normalized. You can set the text attribute to "auto" for all files. The second part of the line (eol=crlf) ensures that Git will always convert line endings to CRLF on checkout.
To try resolving the issue, open the ".gitattributes" file in the Git repository and move the mentioned line from the bottom to the top of the file.
I hope this helps!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!