フィルターのクリア

Gitea does not recognize .slx models as binary files and changes can not be seen.

4 ビュー (過去 30 日間)
Edison Gabriel
Edison Gabriel 2024 年 2 月 15 日
コメント済み: Edison Gabriel 2024 年 2 月 20 日
Hi.
for integrating uploading my files to a git repository but my .slx are not recognized as binary files in the repository. What's wrong with it ? Can you give some guidance please.
Image attached below, I must hide the name of the file due to confindentiallity politics.

回答 (1 件)

Balaji
Balaji 2024 年 2 月 20 日
Hello Edison,
I understand that you are encountering issues with using Git source control for SLX files in MATLAB. If your MATLAB version is earlier than R2020b, I suggest installing a command-line Git client to enable branch merging within MATLAB. For more information on this, I recommend following the 'Install Command-Line Client' subsection using the following link:
Additionally, please ensure that your folder contains a .gitattributes file with the following line:
*.slx binary
This will help Git handle SLX files correctly. For a recommended workflow when using git-based version control with SLX files, consider using Simulink Projects. You can find more information about this by referring to the following link: https://www.mathworks.com/help/simulink/slref/using-a-simulink-project-with-git.html
I hope this resolves your query.
Balaji
  1 件のコメント
Edison Gabriel
Edison Gabriel 2024 年 2 月 20 日
Hi.
First of all thank you for your answer.
I'm acutally using MATLAB R2023b so I think I don't need to install a command-line Git client. I've already added .gitattributes files to my remote repository but the .slx files still not read as binary.
I attach an image showing the content of my repository where the .slx files are inside the folder RFSoC_Proxy_FPGA. In the image It's also shown the content of .gitattributes.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSource Control Integration についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by