- In the AppDesigner, click the “Save” menu, click the downward arrow, and click “Export to .m File…”
- Export the .m file with the default name to a directory
- Add both the .m file and the .mlapp file to the GitHub repository by clicking the “Add file” on the up right corner and choose “Upload files”
- Upload both files and commit to change
- Use git clone command to clone the repository to the local computer
- Make changes as wanted in the .mlapp file in local computer
- Use the method described in former steps, export the .mlapp file to .m file again, in the same repository, and overwrite the previous .m file
- Use git add command to choose files to be commited
- Use git commit command to commit local changes
- Use git push command to push the changes to the GitHub repository
- The history of the associated .m file of the .mlapp is tracked