求助!androidstudio修改代码后git提交修改为何报错没有匹配GIT

Commit failed with error:
pathspec 'src/main/java/app/leeweather/com/myapplication/MainActivity.java' did not match any file(s) known to git.
我是修改了主活动,新建了一个布局文件,然后提交的。

试着让你的本地仓库git fetch从GitHub获取所有新的信息。它只需要关于新分支的信息,没有实际的代码。之后,git checkout应该工作正常