Overview

Git is an open source distributed Version Control System (VCS) where any number of developers can work together on a project where version control is a system that records changes to a file or set of files that can be recalled at a specific version over time. Let's understand the basic functionality of Git.

If a group of developers are working under the Git environment then each developer has a copy of the entire source repository on their machine. It means that if multiple people are working on the same project then they can work individually without being connected to a central network and then they can just push to the project when they are ready. Developers can commit each set of changes on their device and do version controls operations such as:

Note: We can use a Version Control System with any type of project, it may be either small or large. So, before going into a deeper explanation of Git Version Control, let's see a demo, how to use it with our project.

Procedure

For a better understanding, let's see this procedure with example screens.

CreateGitApp

Now select Git from the popup window.

GitOption

Example Program

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace GitExample
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. Console.WriteLine("Git Example App Demo !"); //Firstly written
  12. Console.ReadLine();
  13. }
  14. }
  15. }
Now we have created our application that can work under the Git Version Control environment but some additional settings still need to be configured. To configure the application go to Team Explorer in Visual Studio and configure the setting by providing Username, Email Address and Repository Location. Where Repository is the place on the server/local where the history of our work is stored.

TeamExplorer

We can publish the project either on Github.com or local IIS.

Basically we can do the following operations:

Improvements with Visual Studio 2015 Preview

Let's see the new improvements that are in Visual Studio 2015. Now it's even easier to work with branches and see how the changes in our history diverged.

Branches: Now we can organize our branches hierarchically by specifying a prefix. Now with Visual Studio 2015, local branches as well as remote branches are shown separately in a tree view. Let's see this new feature with an example screen.

History Details: Now we can see the commit diverge in the history that was not available with previous version of Visual Studio.

Summary

In a future article we will see more of an explanation with the final release of Visual Studio 2015.