How do I find uncommitted changes using Git within MATLAB projects?
Show older comments
Background:
I am attempting to switch branches within my MATLAB project that has several submodules and those submodules are then set as references just as is done here.
While attempting to swithch branches in the parent project folder I get the attached error indicating I have uncomitted changes. However, the commit button is grayed out with nothing showing in modified. I have attempted the following steps to debug:
- Check all submodules for uncommitted changes. - there are no uncommitted changes in submodules.
- Change branches in submodules. - I am able to change branches in each submodule that has multiple branches.
- Create a stash in the parent project folder. - No stashes are created but the status bar shows "Completed: Creating stash from modified files."
- Create a trivial modificiation to the parent project (add a folder called tst) and then commit. - I still get the same uncommitted changes while attempting to switch.
- I have pushed, pulled, and fetched and still have the same error.
This is not the first time this has happened to me. Likely this is an indicaiton of user habits. In the past I have fixed this by removing all related files from my computer and recreating my local repo. This is no longer sustainable.
Question:
How do I find uncommitted changes using Git within MATLAB projects?
Accepted Answer
More Answers (1)
Jan Kappen
on 17 Sep 2024
0 votes
What about this command? listModifiedFiles - List modified files in project - MATLAB (mathworks.com)
Categories
Find more on Git in MATLAB 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!