Mozillazg's Blog
  • Home
  • Feed
  • About me
  • Archives

如何撤销第一次提交的 git commit

2015-08-16

git

可以通过如下命令撤销创建仓库后第一次提交的 commit

git update-ref -d HEAD

参考资料

  • http://stackoverflow.com/questions/6632191/how-to-revert-initial-git-commit

Comments


© 2016 mozillazg · Powered by pelican-bootstrap3, Pelican, Bootstrap

Creative Commons License "Mozillazg's Blog" by mozillazg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top