How to revert initial git commit?

前端 未结 9 589
死守一世寂寞
死守一世寂寞 2020-11-30 16:14

I commit to a git repository for the first time; I then regret the commit and want to revert it. I try

# git reset --hard HEAD~1

I get thi

9条回答
提交回复
热议问题