How do I find uncommitted changes using Git within MATLAB projects?
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Jan Kappen
2024년 9월 17일
0 개 추천
What about this command? listModifiedFiles - List modified files in project - MATLAB (mathworks.com)
카테고리
도움말 센터 및 File Exchange에서 Git in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!