Using Git on Visual Studio (2024)

Visual Studio is a common tool with dotnet developers. It is an IDE where you can do all your developments without needing any other tool, even database management software. Last week, I saw someone who has Visual Studio use git bash to manage their git repo. I showed them how to use the git tool on the IDE and thought to write something about it.

You can clone an existing repo or start a new project entirely from Visual Studio without having to use any terminal. Everything you need is already in the IDE.

Let us start with cloning an existing repo.

When you open your Visual Studio (version >= 2019), you get this screen.

Let's assume you have a repo you want to clone.

Using Git on Visual Studio (7)

Click on "Clone a repository" and you will get this page

Using Git on Visual Studio (8)

Put the link of the repo you want to clone and click on clone

Using Git on Visual Studio (9)

Voila, you have successfully cloned a repo.

To create a new repo from a new project, follow these steps:

  1. Create your project

Using Git on Visual Studio (10)

  1. After your project is created, click on the "Git changes" tab beside the Solution Explorer.

Using Git on Visual Studio (11)

If you cannot find the "Git changes" tab, click the View tab at the top of Visual Studio, you will find "Git changes" there.

Using Git on Visual Studio (12)

  1. When the Git changes tab come up, click on "Create new repository" and you will get this page

Using Git on Visual Studio (13)

  1. Fill the form with everything you want and you are good to go. Subsequent changes can be made in the "Git changes" tab.

NB: You must have your git set up before you can do all these. You may get some prompt to set up your git if you have not.

Top comments (0)

Subscribe

For further actions, you may consider blocking this person and/or reporting abuse

Using Git on Visual Studio (2024)
Top Articles
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6061

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.