Troubleshooting misplaced .git directory (nothing to commit)

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

    Encountered this while using SourceTree, fixed it by

    1. First stash your current uncommitted changes.
    2. Apply / Unstash the same changes using Sourcetree.

    Worked like a charm.

提交回复
热议问题