Idea/Android Studio submit code to Git to display No Changes detected

possible reason

My reason is because I modified the directory structure where the project is located, deleted the local warehouse .git folder, and re-modified the workspace.
At this time, after editing the code, if you commit, a No Changes detected dialog box will pop up and you cannot submit.

  • It may be because the editor cannot read the local warehouse correctly, so version control cannot be performed correctly.

Solution

  • So you need to set the directory or VCS type of your new workspace in Files --> Settings --> Version Control. If it is still not recognized correctly, restart the idea, and then you can find that the color of the file name has changed (you can commit)

Guess you like

Origin blog.csdn.net/zsq8187/article/details/109047423