Troubleshooting misplaced .git directory (nothing to commit)

后端 未结 16 1501
死守一世寂寞
死守一世寂寞 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:09

    For anyone seeing this problem, the simplest solution I found was to just "git clone" your repo and delete the old directory. This should set up your pathing correctly by default.

提交回复
热议问题