Can deleted .git be restored?

后端 未结 4 2131
刺人心
刺人心 2020-11-27 19:40

This happened when working with git on Ruby on Rails. several commits and branches were done and created.

git version 1.7.3.4

I accidentall

4条回答
  •  野性不改
    2020-11-27 20:05

    You can clone your repository to another location and simply copy the cloned .git folder to the place of your deleted .git folder.

提交回复
热议问题