Troubleshooting misplaced .git directory (nothing to commit)

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

    I had the same issue. The branch I was working on wasn't being tracked. The fix was:

    git push orgin
    

    This fixed it temporarily. To make the changes pertinently I:

    git config push.default tracking
    

提交回复
热议问题