Use Github for your Visual Studio projects

Depending on the projects I’m working on i either use VSO/TFS or Github. While VSO/TFS integration is part of Visual Studio, Github is not. But there is an add-on available that allows you to enable Github integration into Visual Studio. This blog post guides you through the process on how to configure and use the Github approach,

Download and install the add-on

Navigate to https://visualstudio.github.com/ and download the extension. Before installing, check the requirements. The installation is straightforward.

image

 

Configure Visual Studio

Once the add-on is installed, you shoud see a new “Github” area in the Team Explorer.

image

Now sign in with your Github account.

image

If you already have an existing repository on Github you want to use, clone it. Or create a new repository if needed.

image

image

Now let’s add some files to the repository. Go to the “Changes” area and add files from the “untracked files” menu.

image

image

Now commit and push the changes to Github.

image

Files/folders can also be commited directly from the Solution Explorer.

image

You should now see that the files are source controlled. If you modify a file or add a new one the lock disappears to let you know it’s not yet pushed.

image

That’s it. Check if the files have been pushed to the Github repository.

image

Cheers
Marcel

This entry was posted in Source Control and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s