Table of Contents

  • Introduction
  • What's the Git?
  • What's the GitHub?
  • What'due south the Repository?
  • What's the GitHub Extension for Visual Studio 2017?
  • How to install the GitHub Extension for Visual Studio 2017?
  • How to update the GitHub Extension for Visual Studio 2017?
  • How to set the GitHub as the default Source Control Plug-in?
  • How to utilise the GitHub Extension for Visual Studio 2017?
    • Connect
    • Create
    • Clone
    • Sign Out
  • What're the chief GitHub Extension functionalities?
    • Changes
    • Branch
    • Issue
    • Pull Asking
    • Pulse
    • Graphs
    • Wiki
    • Fetch
    • Pull
    • Commit
    • Sync
    • Push
  • How to add a new solution to GitHub?
  • How to add together an existing solution to GitHub?
  • Known Outcome.
  • How to make a Private Repository?
  • How to delete a GitHub Repository?
  • Conclusion
  • Run into Also

Introduction

In this article. we volition explore theGitHub Extension for Visual Studio 2017 by answering the below questions:

  • What's the Git?
  • What's the GitHub?
  • What's the Repository?
  • What's the GitHub Extension for Visual Studio 2017?
  • How to install the GitHub Extension for Visual Studio 2017?
  • How to update the GitHub Extension for Visual Studio 2017?
  • How to set the GitHub every bit the default Source Control plugin for the new solution in Visual Studio 2017?
  • How to use the GitHub Extension for Visual Studio 2017?
    • Connect.
    • Create.
    • Clone.
  • What're the primary GitHub Extension functionalities?
    • Changes.
    • Branch.
    • Issue.
    • Pull Asking.
    • Wiki.
    • Fetch.
    • Pull.
    • Commit.
    • Sync.
    • Push.
  • How to add together a new solution to GitHub?
  • How to add an existing solution to GitHub?
  • Known Issue.
  • How to make a Private Repository?
  • How to delete a GitHub Repository?

What'due south the Git?

Git is an open source program for tracking changes in text files. Information technology is the cadre technology for the GitHub.


What's the GitHub?

GitHub is a spider web-based graphical interface Git or version control repository that mostly used for lawmaking.
It provides for each project admission control and several collaboration features like bug tracking, feature requests, chore direction, and wikis.


What's the Repository?

A repository is the most basic chemical element of GitHub. it's easiest to imagine equally a project's folder.

  • A repository contains all of the project files (including documentation), and stores each file'southward revision history.
  • Repositories can take multiple collaborators and can be either public or private.

What's the GitHub Extension for Visual Studio 2017?

GitHub Extension for Visual Studio 2017 is a valuable Visual Studio Extension that brings the GitHub menstruation into Visual Studio.


How to install the GitHub Extension for Visual Studio 2017?

Before Installing GitHub Extension, the merely available default connection is Visual Studio Team Services.


To install GitHub Extension for Visual Studio 2017, you should follow the  mentioned below steps:

  • Open Visual Studio Installer 2017.
  • Click Modify button.
  • At private Components > Below Lawmaking Tools > Check GitHub Extension for Visual Studio option. (its size is 5MB)
  • Expect for the installation to complete successfully.
  • Launch Visual Studio 2017.
  • From Squad Carte du jour > Click Manage Connections.
  • After Installing GitHub Extension, you should detect GitHub section every bit shown below.

How to update the GitHub Extension for Visual Studio 2017?

To update the GitHub Extension from ii.2.0.10 to latest update (2.2.0.11), y'all should practise the post-obit:

  • Enable Update Extensions.
    • Tools > Options > Beneath Environs department > Click  Extensions and Updates.
    • In case, y'all take opened the Visual Studio every bit Administrator, you will be able to enable auto cheque for updates for the current user and all users extensions.
    • Check automatically bank check for update, and optionally enable auto update for extensions.
  • Bank check Extension & Updates in Tools Menu.
    • Become to Tools menu > Extensions & Update > at Updates section, check the Visual Studio Marketplace, you should find a new update for GitHub Extension.
    • Click the Update push to update the current GitHub version.

How to set the GitHub every bit the default Source Control Plug-in?

To set Git as a default source command plug-in for the new solution in Visual Studio 2017, you should practise the following:

  • Open Tool Menue > Options.
  • At Source Control > Plug-in Choice > Make sure that the Git is selected.

How to use the GitHub Extension for Visual Studio 2017?

Connect

In one case you have installed GitHub Extension for Visual Studio 2017, you lot should connect to your GitHub business relationship by doing the post-obit:

  • From Team menu, click Manage Connections.
  • Click Connect to connect to your GitHub business relationship. Or signup in instance, yous don't have a GitHub account past clicking SignUp.
  • Provide your GitHub account credential > Sign In.
  • Define the repository name, and optionally set its description.
  • Select repository path on your local reckoner.
  • Specify the license every bit you adopt > then click Create.

Once you lot take continued to your GitHub account, you lot will have three options:

Create


To create a new repository, you lot should do the following:

  • Click Create push button, Ascertain the repository name, and optionally set its description.
  • Select repository path on your local computer.
  • Specify the license every bit you adopt > and so click Create.

Clone

A clone is a copy of a repository that lives on your computer and connected to the remote version in GitHub then when you lot're online you lot volition be able to sync the changes betwixt the 2.

To Clone a Repository, you lot should do the following:

  • Click Clone button to list your repositories,
  • Specify your local path equally you prefer.
  • Once the repository cloned, it volition exist listed in Local Git Repositories.

Sign Out

To log off your GitHub account from Visual Studio.


What're the principal GitHub Extension functionalities?

In this section, we will explain the chief functionalities of the Github Extension.


Changes

To rail and publish the local repository changes.

Branch

A branch is a parallel version of a repository. Information technology is contained within the repository but does non touch the principal or main branch assuasive you to work freely without disrupting the "live" version. When you've made the changes you want to make, you tin can merge your branch back into the master branch to publish your changes.

Issue

Issues are suggested improvements, tasks or questions related to the repository. Issues tin be created past anyone (for public repositories), and are moderated by repository collaborators. Each outcome contains its own discussion forum, can be labeled and assigned to a user.

Pull Request

Pull requests are proposed changes to a repository submitted by a user and accepted or rejected by a repository's collaborators.

Note: A collaborator is a person with reading and writes access to a repository who has been invited to contribute by the repository owner.

Pulse

Show Statistics of the merged and proposed Pull requests and the closed and new result.

Graphs

Show Statistics of Contributors, Traffic, commits ....etc.

Wiki

Wikis provide a identify in your repository to lay out the roadmap of your project, prove the current status, and document software better, together.

Fetch

Fetching refers to getting the latest changes from an online repository without merging them in. Once these changes are fetched you can compare them to your local branches (the code residing on your local car).

Pull

Pull refers to when you are fetching in changes and merging them. For instance, if someone has edited the remote file you lot're both working on, you lot'll desire to pull in those changes to your local copy and then that it'southward upward to date.

Commit

A commit, or "revision", is an individual change to a file (or set of files). Information technology's like when you save a file, except with Git, every fourth dimension you save information technology creates a unique ID that allows y'all to proceed a record of what changes were made when and past who. Commits usually contain a commit message which is a brief clarification of what changes were made.

Sync

To Share your changes with the Server.

Push

Pushing refers to sending your committed changes to a remote repository, such equally a repository hosted on GitHub. For instance, if you change something locally, y'all'd want to then push button those changes and then that others may admission them.


How to add a new solution to GitHub?

To add a new solution to a local Git Repository, you should practice the post-obit:

  • Connect to the GitHub Extension.
  • At the local Git Repositories section. Select your Repository > correct-click > Open.
  • At the Solutions Section, click New to add a new solution.
  • Select your solution template > Provide the solution name and path > Create.
  • Once the solution is created, it should be shown in Solution section.

To push the solution to Online GitHub, you should do the following:

  • Click Changes to list all new changes on Local Git Repository
  • Provide a new annotate that describes the new changes.
  • Click CommitAll push button.
  • Click Sync to share your changes to the server.
  • In outgoing commit, Click Push to push your new solution to the GitHub Online Repository.

To make sure that the solution is published successfully, you lot should exercise the following:

  • Open GitHub site > Sign in with your GitHub Account.
  • Click your Repositories > Select your Branch.
  • You should now find the solution has been synced and pushed to your online repository successfully.

How to add an existing solution to GitHub?

To add an existing solution to GitHub, you should do the following:

  • Open up your solution using Visual Studio.
  • In Solution Explorer, right-click the solution and select add to Source Control.
  • The solution should be added to the default source control (Git).
  • Go to your local Git Repository, right-click and select Open.
  • You should discover the solution is listed in the Solution department.
  • Click changes to commit, sync and button your solution to GitHub Online Repository.

Known Outcome.

In some cases, when you are trying to perform a Clone or Push yous may get the below mistake

Error encountered while cloning the remote repository: Git failed with a fatal fault.
fatal: unable to access 'https://github.com/Youraccount/RepName.git/': SSL certificate problem: self-signed document in the certificate chai

Solution:

  • The new update of Visual Studio should solve this issue, as a temporary solution change the path of your Local Repository that volition solve the upshot.If you lot still face up the consequence check
    • Git failed with a fatal error: unable to access 'https://git.developernote.com/examples/': SSL document trouble: self signed certificate.
    • Unable to clone Git repository due to self signed certificate.

How to make a Individual Repository?

This feature is not bachelor in GitHub extension, it's available in the GitHub Web site, at the same fourth dimension information technology is non bachelor in the costless plan it requires additional fees.

Update: In 08/01/2019, GitHub announced two major updates to brand GitHub more accessible to developers: unlimited free private repositories, and a simpler, unified Enterprise offering.

To  make a Public Repository to Individual Repository, you should exercise the following:

  • Open GitHub site, Sign In.
  • Open your repository, click Settings.
  • Scroll down to the Danger Zone, you should find Make this repository private.
  • In case, you are using a free program, you volition be asked to upgrade your electric current complimentary plan to developer programme to make this repository private by paying $vii monthly or $84 yearly.

How to delete a GitHub Repository?

This feature is non available in GitHub extension, it'southward available in the GitHub Web site.

Note: Once you delete a repository, there is no going back. Please be certain.

To delete your repository, yous should do the following:

  • Open GitHub site, Sign In.
  • Open up your repository, click Settings.
  • Scroll downward to the Danger Zone, you should find Delete this repository.
  • Provide the repository name as a blazon of confirmation, then click I understand.

Conclusion

In this article, we have explored theGitHub Extension for Visual Studio 2017.
Return to Top

Encounter As well

  • Swoop into Visual Studio 2017.
  • GitHub Extension with Visual Studio.
  • Visual Studio 2017: New Installation Experience.