Main Content

Move, Rename, or Delete Files Under Source Control

Move, rename, or delete files using the MATLAB® Source Control context menu options or another source control client application.

To move a file under source control, right-click the file in the Current Folder browser, select Source Control > Move, and enter a new file location.

To rename a file under source control, right-click the file in the Current Folder browser, select Source Control > Rename, and enter a new file name.

To delete a file from the repository, mark the file for deletion.

  • To mark a file for deletion from the repository and retain a local copy, right-click the file in the Current Folder browser. Select Source Control and then Delete from SVN or Delete from Git. When the file is marked for deletion from source control, the symbol changes to Deleted . The file is removed from the repository at the next commit.

  • To mark a file for deletion from the repository and from your disk, right-click the file in the Current Folder browser. Select Source Control and then Delete from SVN and disk or Delete from Git and disk. The file disappears from the Current Folder browser and is immediately deleted from your disk. The file is removed from the repository at the next commit.

Related Topics