Using Team Foundation Server, GIT, and Visualstudio.com to set up a a team project that you already have startedThe first time I tried to get this started with a co-worker it worked no problem. We got real lucky. Since then we had 5 or 6 failed attempts. I was searching all over the internet and just couldn’t figure out how to get the project started. This was my first time using GIT and my first time using Team Foundation Server. My buddy and I really tried a few different ways. I believe I will be adding how to do via command line over the next few days, as my buddy likes to use command line and we will get that process up here. I started a thread on /r/learnprogramming and started to document what i was doing and what wasn’t working. This is my attempt at cleaning it up a little. I’m sure I will be posting, as soon as we get it set up, a way to do this on your local network. Setting Up A Team Project using Visualstudio.com, Team Foundation Server and GIT This assumes you have git for vs and the updates for visual studio. If you need help with this, put it in the comments Get started by being in your subdomain.visualstudio.com and clicking on New Team Project + Git The Create New Team Project will appear. Type in your project name(NOTE: I found that leaving the spaces out of this stuff prevents the %20s in your project name), description, Process Template (I’m using MSF for Agile Software Development 6.2.) Why? I’ve heard of Agile before… Version control = Git. Create the project. Your project is created and your team is going to absolutely love this. Do you know how many times I read this? Quite a few times while trying to get this to work. I didn’t think my team was going to love anything. Now what we have to do is set up your additional members. I already have my members set up, so I just have to pick them. Click on Manage all members Clicking on Add is where you want to be. Add with their Windows Live ID, or if they are already in there, type in their display name Okay.. that is out of the way. You have a project set up on your remote repository and can get started setting up the project locally and syncing everything up. As you can see, I have a bunch of failed testing examples, team planet stuff that I was attempting to get to work. So, below is the start page. Click on Connect to Team Foundation Server NOTE: I found that leaving the spaces out of this stuff prevents those %20s Your connect to team foundation server is going to come up. Select your server, make sure you are in the right collection, then select your team project. I took this screenshot before I cleared out the garbage… But I selected Spam_Test. After clicking connect, you will want to make sure you have your Team Explorer window accessible (View / Team Explorer if it isn’t in one of your side bars) You will see, in yellow, a CLONE option. Click on that. That is going to take your newly connected repo and make a spot for it on your local machine. Now you are going to point where you would like to store your local Git Repository. Point it, then click Clone Now you want to copy over your files from your original project to where you just pointed your Local Git Repository (in the last step) — I used Windows Explorer I’m using File, Open Web Site – Because that is the easiest way for me to get this going. If you have your project file in the same folder, after moving the folder, I’m not sure how that works out. If you do, let me know. Open up your Team Explorer again. You will see just under the top options, you have a drop down. Click on that and click on changes/git changes After doing so, you will see Untracked Files. Add All will move them up in to your included Changes. Now, type in a commit message, then click Commit (after verifying your Included Changes) This is when Microsoft Visual Studio will ask you to save your current project. This is when I take the opportunity to save it in the same directory. I’m doing this because I want to make sure that I sync the project file with the project (so that all developers can be on the same page!). If I am doing this wrong, let me know! Commit Successful! You will notice your solution files are now in the Untracked Files if you added them to your repo directory. I added them and then did a second commit. Now you will want to push your commits. That will take the files on your local repository and push them to your visualstudio.com server area. Check out what is going on below. Get to the Commits drop down. Under outgoing commits, click push. After clicking sync you will see that you are syncing. NOTE. Master. That is the master branch. If you don’t know what you are doing and start workign on another branch.. this will get a little confusing. And you are finished!
Trackback from your site.