Git repository for the Cuby project
- make sure you have Git installed
- make sure to understand how git is used (branches, merge requests, etc.). There are plenty of online tutorials and it's not complicated. If you have any questions, ask :)
- never (!!!) work in the master branch. Whenever you want to add something (e.g. a new function) create a new branch. If you're done with the new feature, create a merge request!
- Open Matlab
- Navigate to the directory where you want to keep the repo
- Create a directory with the name you want to have for the repo (e.g. "Cuby")
- Navigate into this newly create directory in Matlab
- Right click on the empty space in this directory in Matlab (in the area where the files would be, if there were any)
- Choose "Source Control" -> "Manage Files..."
- Keep "Source control integration" as "git"
- Insert the https adress of the repo in "Repository Path" (you find that in Gitlub. If you're in the Cuby repo, click the "Clone" button and copy the https adress)
- Click "Retrive"
- Enter your Gitlab credentials
- Done. The repo should now be on your computer.
Note: For switching branches, mergin, push / pull etc. right click again in the white space in the Matlab explorer and look under "Source control"
- put every function in the "functions" directory
- put every class definition in the "classes" directory