xcode 如何使用源树恢复到较早的提交
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28253914/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I revert back to earlier commit using source tree
提问by burrGGG
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?
我有一个项目存储在我的 Mac 上,并为从该位置到我的项目创建了一个存储库。我可以使用源代码树提交,但现在我想恢复到较早的提交,以便更新文件夹中的所有文件?我不确定我是如何做到这一点的?
回答by dminones
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".
右键单击要还原到的提交,然后单击“重置 <> 到此提交”。