你如何回复sourcetree? [英] How do you revert with sourcetree?

查看:165
本文介绍了你如何回复sourcetree?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您正在使用sourcetree,那么恢复到之前提交的过程是什么?请不要命令行帮助,我明白你将如何达到相同的结果,但我特别希望用我的友好的atlassian工具来做到这一点。

通过回复,究竟是什么意思?您可以通过右键单击提交并选择<$ c提交反向提交 $ c>反向提交。这将有效地创建一个新的提交,否定所做的更改。
您所做的更改的提交仍然存在。



您可以通过双击早期提交来结帐更早的提交,或者右键单击并选择结帐。这会将您的代码更改为您所选提交的状态,因此不需要稍后提交的更改。
您所否定的更改提交仍然存在。



您可以重置为先前的提交。
这将删除您想要取消更改的提交。
(他们通常可以使用reflog恢复)


What is the process to revert back to a previous commit if you are using sourcetree? Please no command line help, I understand how you would achieve the same result there but am specifically looking to do it with my friendly atlassian tool.

解决方案

What exactly do you mean by revert?

You can commit a reverse commit by rightclicking on a commit and selecting Reverse commit. This will effectively create a new commit that negates the changes you made in your selected commit. The commit with the changes you negated will still exist.

You can checkout an earlier commit by doubleclicking on an earlier commit or rightclicking and selecting checkout. This will change your code to the state it was for your selected commit, so without the changes from later commits. The commit with the changes you negated will still exist.

You can reset to an earlier commit. This will remove the commit with the changes you want to negate. (They can normally still be recovered using the reflog)

这篇关于你如何回复sourcetree?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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