How to remove the first commit in git?

后端 未结 9 1709
深忆病人
深忆病人 2020-12-07 07:20

I am curious about how to remove the first commit in git.

What is the revision before committing any thing? Does this revision have a name or tag?

9条回答
  •  自闭症患者
    2020-12-07 07:51

    If you have just committed it but not pushed it then just remove .git directory and git init again...

提交回复
热议问题