Home » Softwares » Git » How To Use Git From Visual Studio Online

How To Use Git From Visual Studio Online

If you have a Git repository in Visual Studio Online and want to use a third party to manage your source code, like SourceTree, you need to configure something in Visual Studio.

First, open your Visual Studio Online portal and go into your profile to setup an alternative authentication. The profile is in the top-right corner of Visual Studio. Click your name and then click My Profile.

Step1Profile

Second, click the Crendential tab. This will allow you to have an alternative login name and a password to use for application like SourceTree (or any other system).

Step2AlternateAuthentification

When this is done, the third step is to copy the Git Http path which is the one you see in your browser when you click in the project you want to code, then code. The syntax should looks like the example below.

https://YOURRepositoryNAME.visualstudio.com/DefaultCollection/_git/Project

You need that http url to paste it into your software and be able to clone the repository. From there, you can use git to do every other commands you wish.

If you like my article, think to buy my annual book, professionally edited by a proofreader. directly from me or on Amazon. I also wrote a TypeScript book called Holistic TypeScript

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.