将本地VS项目GIT移至Team visual studio在线项目GIT(Move local VS project GIT to Team visual studio on

编程入门 行业动态 更新时间:2024-10-27 20:39:01
将本地VS项目GIT移至Team visual studio在线项目GIT(Move local VS project GIT to Team visual studio on-line project GIT)

我在VS 2013中有一个解决方案。我已将GIT设置为源控件并拥有本地存储库。 我还希望有一个我可以对我的视觉工作室在线帐户进行更改。 听起来相当简单,但是在4个小时内我学会了如何创建一个新的团队项目,但我无法移动/复制/推送或以其他方式复制本地回购到在线版本。

如果我在线创建一个新项目然后选择它,它将在Visual Studio中打开一个空的解决方案。

你会认为有很多人有同样的问题,但我找不到任何解释如何做到这一点的人。 是的,我是GIT和VS的新手。

任何帮助,将不胜感激。

I have a solution in VS 2013. I've set GIT as the source control and have a local repository. I would also like to have one that I can commit changes to that resides at my visual studio on-line account. Sounds fairly straight forward, but in 4 hours I've learned how to create a NEW team project, but I am unable to MOVE/COPY/PUSH or otherwise make a duplicate of the local repo to the on-line version.

If I create a new project on-line and then select it, it opens an empty solution in Visual Studio.

You would think that there are numerous people who have this same problem, yet I am unable to find anything that explains how to do this. Yes, I am new to GIT and VS on-line.

Any help would be appreciated.

最满意答案

检查VSO项目是否具有Git支持。 如果您选择TFVC,则必须重新创建它。

在Visual Studio 2013 Update 4中(不确定以前的版本),在团队资源管理器中,选择“未同步提交”按钮,并在VSO中使用Git存储库填写“ 发布到远程存储库”。 您可以在消息« 要在Git中克隆此存储库,下面的代码选项卡中找到此URL ,请使用以下URL: »。

You have to create the project in Visual Studio on-line in order to push your code there. Do that first. IT NEEDS TO HAVE THE SAME NAME

After the project is created you will have this screen. The important parts are in red. Note from VS local you can open a command prompt window. It needs to be in the same directory as the repository locally so if you do it directly be sure to change the directory to the root of your local repository. enter image description here

更多推荐

本文发布于:2023-08-05 00:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1423194.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在线   项目   移至   Team   GIT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!