简体   繁体   中英

Matlab Source Control Git and SVN

I am fairly new to source control, and I've played around with Git and SVN integration in Matlab. Everything seems to do what I am looking forward, however, is it possible to have a copy of the pushed file saved on the remote repository? Or, if an earlier version of the file is already on the remote repo, can I save/overwrite it with the pushed changes?

Thanks, Leon

In your local repo, if you change a .m file (such as test.m ), you should commit your local changes and then push the changes to remote repo by below commands:

# Assume change test.m in local master branch
git add test.m
git commit -m 'change the test.m file'
git push origin master

Then you will fine the test.m file is updated in remote master branch. More detail about git VCS, you can refer Recording Changes to the Repository in git book.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM