When we use Visual Studio 2015 or 2017, we see the Git feature is provided by default. At least, we do not need to install Git separately, Git can be installed with Visual Studio together. When new cross platform supported Visual Studio Code came, we thought it will come with Git together by default. But actually it is NOT. At least, in current newest version 1.19.3.
I realized it was some different when I loaded local project to Visual Studio Online in Visual Studio 2015 compared with using Visual Studio 2013.
The following is the process of how to load a project onto VS online in VS 2015:
You might not believe it: Microsoft has over 850+ projects on GitHub. You know, all are open sourced.
Will they put more ?
This is the first time I meet Microsoft Visual Studio Online Service down, I could not connect to my VS Online Projects, they might call it is User Hub. Some of my source code are on VS Online.
When I tried to login the VS Online account, I could access Visualstudio.com home page without problem, but could not access user hub, got the following error sometimes, or just a timeout message:
Visual Studio 2013 does not provide Git Tag function before Update 2, current the Visual Studio 2013 update 2 is still not formally released but just a RC release, so there are lots of developers are still using old Visual Studio 2013, which can not add git tag using Visual Studio 2013 directly.
So, we have to use Git command line.
Here I do not want to talk about install 3rd party Git command tools or related security settings, what I want to below is that I suppose you have done the some pre-settings things, if you did not, check here first, you must done those settings and installations before you read below content.
Sometimes we used other people’s computers to write code, and we set our own TFS or Git account information to download or upload our code. so before we leave, we should remove our TFS (Team Foundation Server ) or Git account information from that computer.
Let us try to do by following below steps:
1: Select the menu “TEAM” –> “Disconnect from Team Foundation Server”, this will disconnect all your local repositories from remote TFS server (Visual Studio online):
We used Visual Studio 2013 and Git source control to connect Visual Studio Online, see previous blog here.
When we tried to Sync master branch, we got the following error message:
An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error).
An error occurred while sending the request.
Visual Studio Online is actually formally called Team Foundation Server. But it is kind of cloud system, and there should be different features compared with team foundation server system.
Here we have a case: upload local existing project to Visual Studio Online:
1: First we create a new project in Visual Studio online, we selected GIT source control; We named the project as S900 Web System:
Microsoft provides the comparison information:
Team Foundation Version Control (TFVC) is a centralized version control system. Typically, Team members have only one version of each file on their dev machines. Historical data is maintained only on the server. Branches are path-based and created on the server.