Visual Studio在2个Git分支之间的一半 [英] VisualStudio half way between 2 Git branches

查看:223
本文介绍了Visual Studio在2个Git分支之间的一半的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Visual Studio中(在Git上)更改分支。通过更改的一半VisualStudio表示它内存不足,并停止。



我仍然在原始分支上,但VisualStudio现在说我有1428个文件被更改在我可以改变分支之前我需要推动的那个分支。我假设这些文件是我要更改的分支的复制文件。



我右键单击并选择撤消更改。 Visual Studio问我是否想撤销这些更改。我说是的,它说它正在这样做,所有这些文件仍然存在。



我如何摆脱一个分支中的所有这些更改?



如何切换到其他分支?



谢谢 - dave

解决方案

打开命令行并键入git reset - - 然后用git checkout yourbranch。

I tried to change branches in VisualStudio (on Git). Half way through the change VisualStudio said it was out of memory and stopped.

I am still on the original branch, but VisualStudio is now saying I have 1428 files that are changed in that branch that I need to push before I can change branches. I assume these are the files it was copying down for the branch I want to change to.

I right click and select "undo changes." Visual Studio asks me if I want to undo those changes. I say yes, it says it's doing it and... all those files are still there.

How do I get rid of all these changes in the one branch?

And how do I switch to the other branch?

thanks - dave

解决方案

Open command line and type git reset - - hard then git checkout yourbranch.

这篇关于Visual Studio在2个Git分支之间的一半的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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