Gitea does not recognize .slx models as binary files and changes can not be seen.
5 次查看(过去 30 天)
显示 更早的评论
Hi.
I've followed step by step the process described at https://es.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1618108/image.png)
0 个评论
回答(1 个)
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Source Control Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!