Troubleshooting misplaced .git directory (nothing to commit)

后端 未结 16 1509
死守一世寂寞
死守一世寂寞 2020-12-05 01:42

I started getting this message. No matter what I edit and try to commit, it says there is nothing to commit. Looks like git does not see my working directory and looking som

16条回答
  •  温柔的废话
    2020-12-05 02:10

    I just had this problem myself because I was in the wrong folder. I was nested 1 level in, so there were no git files to be found.

    When I execute cd .. to the correct directory, I was able to commit, as expected.

提交回复
热议问题