如何恢复使用源码树的早期提交 [英] How do I revert back to earlier commit using source tree

查看:194
本文介绍了如何恢复使用源码树的早期提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目存储在我的Mac上,并创建了一个从该位置到我的项目的存储库。我能够提交使用源码树,但现在我想恢复到以前的提交,所以我的文件夹中的所有文件更新?我不知道我是如何做到这一点的?

$暂时还原 b
$ b

如果您想暂时返回到此提交,请返回到您所在的位置。

右键单击提交您

永久还原返回



这将添加提交以恢复您提交后的所有工作



右键单击要恢复的提交,然后单击重置<>到此提交 。




I have a project stored on my Mac and created a repository for from that location to my project. I am able to commit using source tree but now I would like to revert back to an earlier commit so all my files in folder update? I'm not sure how i do this?

解决方案

Temporary Revert Back

If you want to temporarily go back to this commit, then come back to where you are.

Right click on the commit you want to revert to and click on "checkout".

Permanent Revert Back

This will add commits to revert all your work since this commit

Right click on the commit you want to revert to and click on "Reset <> to this commit".

这篇关于如何恢复使用源码树的早期提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆