Posts Tagged “Git”

One of the most common issues I am finding with teams moving from Team Foundation Version Control to TFS-Git is that they are including files in their repositories that they shouldn’t. The most common offenders are .suo user settings files, Nuget packages and Azure publish settings.   Luckily, the solution is straightforward.   1. Ensure you have no pending changes. 2. Close the solution 3. Go into Team Explorer and click Settings      4. In the Settings tab select Git Settings      5. Open the .gitignore file from GitHub that is specific to Visual Studio projects and copy the contents to the clip board. Figure: the .gitignore includes a list of all of the files that you want to avoid committing to your repository    4. In Settings | Repository Settings, click the Edit link next to ‘/,gitIgnore’        6. Paste the contents of the .gitIngore from GitHub into the .gitignore file and Save it.      7, In Team Explorer, navigate to the Changes window. Enter a comment and click Commit.      8. Click the Sync link to take you to Unsynched Commits      9. Click the Sync button to push your updated .gitIgnore      10. If you have included files in your repository that you wish to exclude from the repository but not delete from your local working directory refer to Remove files from your repository (so that they aren't tracked), but leave them in the working directory on my page for... ... [Read More]
I got asked for a 60 second intro to using TFS-Git. 1. Go to your personal TFS (e.g.   2. Create a new Team Project Figure: Click on New under Recent projects  & teams Figure: Enter the name of the Team Project (E.g. FireBootCamp)Select Git as the version control system.Select Create project   3. Clone your Repository locally Figure: In Visual Studio, open Team Explorer and click Select Team Projects Figure: Select the team foundation server to connect to, select the team project and then click Connect Figure: Right click on the Repository and select Clone Figure: Enter the path to the local repository and click the Clone button   4. Add your MVC project to the Repo Figure: Create the MVC Project Figure: Right click on the Solution file and click Commit Figure: Enter a comment and click Commit and Sync ... [Read More]
Configure Your Build 1. Open the Build Pane Figure: From Team Explorer choose Builds   2. Create a new build definition Figure: Click on the New Build Definition link   3. Enter build definition name “AdamS.MembershipSample.CI”(CI for Continuous Integration) 4. On the Trigger tab choose ‘Continuous Integration’   5. On the Source Settings tab remove any unwanted Source Control folders Figure: Remove any items that do not apply to your project (sometimes items from other solutions will appear in this list – remove them)   6. On the Process tab, ensure that the solution is being built   7. Save the Build Configure Build Notifications 1. Run the Visual Studio Build Notification application. From C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\BuildNotificationApp.exe   2. Select the build Figure: Select the Build that you just created and click OK Start a Build Figure: Go to Team Explorer | Builds. Right click on the Build and choose Queue New Build   Figure: When the build is complete, you will get a green or red icon indicating the status. ... [Read More]
Git - Essential Commands for Visual Studio Developers ... [Read More]