Git 提交報錯:Commit failed with error:
pathspec ‘src/main/java/com/leo/demo/juctest/test.java’ did not match any file(s) known to git.
可以先參考這篇文章:
https://www.jianshu.com/p/56f5589c66fc
筆者的解決方案比較簡單粗暴,直接把路徑下的文件添加再提交本地,然後再刪除,問題可以解決。
Git 提交報錯:Commit failed with error:
pathspec ‘src/main/java/com/leo/demo/juctest/test.java’ did not match any file(s) known to git.
可以先參考這篇文章:
https://www.jianshu.com/p/56f5589c66fc
筆者的解決方案比較簡單粗暴,直接把路徑下的文件添加再提交本地,然後再刪除,問題可以解決。