Can I unpopulate a Git submodule?

后端 未结 3 910
渐次进展
渐次进展 2021-02-08 23:57

Once I run

git update submodule

can I do anything to make it go back to the way it was before init and update?

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 00:57

    If you changes were commited, then you should be able to check the reflog:

    git reflog
    

    Once you find the change set you lost you can merge it back in.

    If your changes were not commited, then they cannot be recovered.

提交回复
热议问题