前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >git练习之二 - version revert

git练习之二 - version revert

作者头像
Jerry Wang
发布2019-09-18 10:12:32
3200
发布2019-09-18 10:12:32
举报

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://cloud.tencent.com/developer/article/1508066

Finish takt 3 dev and commit it:

Header is now at 8cb2749:

A new file ORIG_HEAD is generated in .git pointing to original header ( takt 3 ):

Now we are in takt2 : the source code is restored to takt2 state:

try with --soft:

moved to initial commit:

Now content of ORIG_HEAD changes to:

And the content of source code is not reverted to initial state, either.

Now I could like to go to the latest version where takt 3 dev is finished, that is, original header f70197c:

Then the content is restored to the original state of this document.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年09月17日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档