简体   繁体   English

TFS-更新最新版本后撤消合并

[英]TFS - undo merge after get latest

I did a search on this issue and found a lot posts and questions but none seems to target my situation. 我对此问题进行了搜索,发现了很多帖子和问题,但似乎都没有针对我的情况。
I had pending changes and i did "Get Latest", i got the conflicts window and wanted to resolve them, so i did a merge as i wanted to keep both my changes and the server's new code. 我有待处理的更改,我做了“获取最新”,我找到了冲突窗口并想解决它们,所以我进行了合并,因为我想同时保留更改和服务器的新代码。 but i forgot to check the block of codes and i just clicked merge (did not checked in yet!). 但我忘了检查代码块,我只是单击了合并(尚未签入!)。 i had a conflict on one of the cproj files and now i lost some .cs files as well. 我在一个cproj文件上发生了冲突,现在我也丢失了一些.cs文件。
I think i lost both versions of code and i want to go back and do that merge all over again and do it right, but i don't have a time machine! 我想我失去了这两个版本的代码,我想回去再做一次合并,然后正确地做,但是我没有时间机器! :) :)
Any help would be appreciated. 任何帮助,将不胜感激。

You basically did an... let's say "Auto Merge". 您基本上做了一个……让我们说“自动合并”。 The only help you have is to view the changeset/history of that exact file. 您唯一的帮助是查看该确切文件的变更集/历史记录。 Unless you shelved some changes, there is no way to get both .cs files back. 除非您搁置了一些更改,否则无法将两个.cs文件重新找回。

If you haven't checked in merged changes yet, you still have an option to compare merged files with latest server version and undo all those changes which got merged from server to your local changes manually(especially csproj file in your case). 如果尚未签入合并的更改,您仍然可以选择比较合并的文件与最新服务器版本,并手动撤消从服务器合并到本地更改的所有那些更改(尤其是csproj文件)。 Later, you can be careful to merge again and select all the required blocks. 以后,您可以小心地再次合并并选择所有必需的块。

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

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