TortoiseGit:如何临时切换到早期版本 [英] TortoiseGit: How do I temporarily switch to an earlier version

查看:137
本文介绍了TortoiseGit:如何临时切换到早期版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Git中,我对主分支进行了很多更改,并且还创建了一个名为"BeforeDynamicCasts"的标签.我希望暂时切换到"BeforeDynamicCasts",然后返回到我的master分支.我该怎么做?

In Git I have made a bunch of changes to my master branch, and I also have created a tag called 'BeforeDynamicCasts'. I wish to temporarily switch to 'BeforeDynamicCasts', and then revert back to my master branch.. How can I do this?

我可以将标签切换/签出,但是不确定随后如何返回到master分支.这是正确的方法吗?上一次,我无法回到原来的master分支.

I can do switch/checkout to the tag, but not sure how to get back to the master branch afterwards. Is this the correct way to do it? Last time I did this I was not able to get back to my original master branch.

推荐答案

  • 资源管理器->切换/签出
  • 选择分支,母版
  • 确定
  • 这篇关于TortoiseGit:如何临时切换到早期版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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