To share your Simulink® project, you can make your project publicly available on GitHub®. First, create a login on GitHub.
You can share any project. Sharing adds Git™ source control to the open project. If your project is already under source control, sharing replaces the source control configuration with Git, and the project’s remote repository is GitHub.
If you do not want to change your current source control in the open project, share a copy of the project instead. To create a copy to share, see Archive Projects in Zip Files.
With a project loaded, on the Simulink Project tab, select Share > Change Share Options.
Add the GitHub option to your Share menu. In the Manage Sharing dialog box, select GitHub and click Close.
Select Share > GitHub.
In the Create GitHub Repository dialog box, enter your GitHub user name and password, and edit the name for the new repository. Click Create.
A warning prompts you to confirm that you want to create a public repository and modify the current project’s remote repository location. To continue, click Yes.
The Create GitHub Repository dialog box displays the URL address for your new repository. Click the link to view the new repository on the GitHub website. The repository contains the initial check-in of your project files.
The source control in your current project now references the new repository on GitHub as the remote repository. To use the project with the new repository, in the Create GitHub Repository dialog box, click Reload Project.
In the project, you can find the URL address for your remote repository on the Simulink Project tab, under Source Control, using the SVN Details or Git Details button.
If you have not already set up Git, you need some additional setup steps before you can merge branches. You can use other Git functionality without any additional installation. See Set Up Git Source Control.