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

4 次查看(过去 30 天)
来超
来超 2024-11-13
回答: Sivsankar 2025-1-21
  1 个评论
Swastik Sarkar
Swastik Sarkar 2024-11-18
Could the model you were trying to import be shared ?

请先登录,再进行评论。

回答(1 个)

Sivsankar
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!

类别

Help CenterFile Exchange 中查找有关 源代码管理集成 的更多信息

Community Treasure Hunt

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

Start Hunting!