simulink添加​slx文件到工程,报​错,请教如何解决

4 views (last 30 days)
来超
来超 on 13 Nov 2024
Answered: Sivsankar on 21 Jan 2025
  1 Comment
Swastik Sarkar
Swastik Sarkar on 18 Nov 2024
Could the model you were trying to import be shared ?

Sign in to comment.

Answers (1)

Sivsankar
Sivsankar on 21 Jan 2025
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!

Categories

Find more on 源代码管理集成 in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!