I have an existing solution on my desktop. My IT administrator created a project on Visual Studio Team Services for me to connect my solution to. However, I have no found any way that will actually work. So far I have tried to:
First attempt. Result is all of my files have have the locked icon next to them as if they have been check in but there is no way to upload the code. 1. Connect my Team Explorer in Visual Studio 2015 to my online account. 2. Right click on my solution and click Add Solution to source control.
Second attempt. Result, same as first attempt. 1. Go to visualstudio.com and select my project, then select the code tab. Click on clone in Visual Studio. 2. In Visual Studio, open my solution and click Add Solution to source control.
I cannot find a location to enter my clone URL into my solution in Visual Studio. I checked in both Solution Explorer and Team Explorer and there appears to be no option. This is very frustrating because Microsoft gives very little instruction online.
If you are using TFVC, you need to configure the workspace first after connecting to your team project from Team Explorer and move your solution/project to the workspace folder. And then you can right click on the solution to add it to source control and check in. Refer to this link for details: Add an existing app.
If you are using Git, you can clone the VSTS remote repository to your local machine from Team Explorer and copy your solution into the local Git repository folder, and then commit the changes and push to VSTS. Refer to this link for details: Develop and share your code in Git using Visual Studio. You can also convert the folder of your solution to a local Git repository and then push it to VSTS remote repository via following commands:
git init
git add .
git commit -m 'commitcomment'
git remote add origin <vsts remote repository url>
git push origin master
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments