githug第45关
记录一下githug游戏的45关,如下图:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3760f72109fe6ccf8cb76c8e4e63e906.png)
意思就是修改first commit时写错的message,
网上答案:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/74d5918045b9280468707d32bdb2193b.png)
但是按照这些步骤下来,最终log的时候虽然显示是正确的,但输入githug却没有办法过关
最终按照另一种方法成功过关:
1.git rebase -i [Initial commit的hashcode]
2.修改first coommit的pick为e(exec),Ctrl加x保存
3.git commit --amend
4.修改 coommit为commit,Ctrl加x保存
5.git rebase --continue
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/4216b9141c3bc18088b31cb5579ca228.png)