简体   繁体   English

如何更改 sourcetree 中的主提交?

[英]How can I change which commit is master in sourcetree?

I want to change master to be at the commit "Local settings for Jakov".我想将 master 更改为提交“Jakov 的本地设置”。 Then I want to delete the two latest commits, "Import xlsxwriter" and "Revert "Import xlsxwriter". Is this possible?然后我想删除两个最新的提交,“Import xlsxwriter”和“Revert”Import xlsxwriter。这可能吗?

在此处输入图片说明

Right click over that commit "Local settings for Jakov".右键单击该提交“Jakov 的本地设置”。 And then choose the option "Reset master to this commit"然后选择选项“将主重置为此提交”

例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM