Connect to existing Visual Studio Online Project
If your friend or team member invites you to join his project which is on Visual Studio Online, you will connect his online project using Visual Studio 2013.
1: First we open Team Explorer view in Visual Studio 2013:
2: In Team Explorer view, click Connect icon on top, and click "Select Team Projects…"
3: In Connect information windows, click "Servers…"
4: In next Windows, click Add… button, to see another window named "Add Team Foundation Server":
5: Input Visual Studio Online Server address which your friend told you, or you can get his Visual Studio Online invitation email:
6: Now you are asked to login using your Microsoft account, you should use the one which your friend sent you the email.to (or if you have another Microsoft account, you should tell your friend, and let him add your Microsoft account into Visual Studio Online project);
7: If the login was successfully, you would see the remote server address was added, now you click Close button
8: Now you can see project list, if you have been added into multiple Visual Studio Online, you could see multiple projects here.
Check on the projects which you want to connect, and click Connect button:
9: In Home page of Team Explorer view, click "Settings"
10: Click "Git Settings" in Settings Window:
11: Input Git information which you are going to use for commit or update code, also set a local repository workspace, and then click Update button:
12: Then go to Connect window, right click the project on remote server, and select Clone… menu:
13: Now you can see a preview clone folder information, you should confirm your local directory is what you wanted, the Workspaces folder was created in step 11, and then, you click Clone button:
14: Now you see the online project with Git control information was clone to your local repository, you just double click your local repository name
15: Then you can see the local solutions, double click the solution and access to the solution, you can work on the solution now (go to solution explorer to see code)