MATLAB Projects causes error on git (missing HEAD)
Show older comments
I have tried many times to integrate my repository with MATLAB Projects. Initially, everything seems fine - I was able to add the *.prj file and everything in the resources/project folder and push them to GitHub. Then, after adding submodules in the repository, I was unable to do anything (fetch, pull, push, refresh etc). UPDATE: It doesn't have to do with submodules, the error could happen even before adding any submodules. It seems like my local repo is corrupted (?). I have tried this again and again (deleting the local repo and cloning from the remote) to no avail. I even try creating a dummy repo and initializing a project there, same results. This is the error that always appears:
Unable to fetch from the remote 'origin' at <the repo url>.
object not found - no match for id (<latest commit ID (HEAD)>) (-3x9)

Even right-clicking in the current directory gives an error:

Please help as I really want to use projects as they are quite convenient to deal with dependencies. Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!