Table of Contents

  • Introduction
  • What's the Git?
  • What's the GitHub?
  • What's the Repository?
  • What'due south 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 fix the GitHub as the default Source Control Plug-in?
  • How to use the GitHub Extension for Visual Studio 2017?
    • Connect
    • Create
    • Clone
    • Sign Out
  • What're the main GitHub Extension functionalities?
    • Changes
    • Co-operative
    • Issue
    • Pull Asking
    • Pulse
    • Graphs
    • Wiki
    • Fetch
    • Pull
    • Commit
    • Sync
    • Push
  • How to add together a new solution to GitHub?
  • How to add an existing solution to GitHub?
  • Known Outcome.
  • How to make a Private Repository?
  • How to delete a GitHub Repository?
  • Determination
  • Come across Also

Introduction

In this article. we will 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 as the default Source Control plugin for the new solution in Visual Studio 2017?
  • How to employ the GitHub Extension for Visual Studio 2017?
    • Connect.
    • Create.
    • Clone.
  • What're the main GitHub Extension functionalities?
    • Changes.
    • Co-operative.
    • Result.
    • Pull Request.
    • Wiki.
    • Fetch.
    • Pull.
    • Commit.
    • Sync.
    • Push button.
  • How to add a new solution to GitHub?
  • How to add together an existing solution to GitHub?
  • Known Effect.
  • How to make a Private Repository?
  • How to delete a GitHub Repository?

What's the Git?

Git is an open source programme for tracking changes in text files. It is the core 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 code.
Information technology provides for each projection access command and several collaboration features similar bug tracking, feature requests, task direction, and wikis.


What's the Repository?

A repository is the nearly basic chemical element of GitHub. information technology'south easiest to imagine as a projection'due south folder.

  • A repository contains all of the projection files (including documentation), and stores each file's 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 flow into Visual Studio.


How to install the GitHub Extension for Visual Studio 2017?

Before Installing GitHub Extension, the only 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 Change button.
  • At private Components > Below Code Tools > Check GitHub Extension for Visual Studio option. (its size is 5MB)
  • Wait for the installation to complete successfully.
  • Launch Visual Studio 2017.
  • From Team Bill of fare > Click Manage Connections.
  • After Installing GitHub Extension, yous should detect GitHub section as shown below.

How to update the GitHub Extension for Visual Studio 2017?

To update the GitHub Extension from two.2.0.10 to latest update (2.ii.0.11), you should do the following:

  • Enable Update Extensions.
    • Tools > Options > Below Surround section > Click  Extensions and Updates.
    • In example, you lot have opened the Visual Studio as Ambassador, you will be able to enable auto check for updates for the current user and all users extensions.
    • Check automatically bank check for update, and optionally enable machine update for extensions.
  • Check Extension & Updates in Tools Menu.
    • Go to Tools menu > Extensions & Update > at Updates section, check the Visual Studio Marketplace, you lot should find a new update for GitHub Extension.
    • Click the Update push to update the current GitHub version.

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

To ready Git as a default source control plug-in for the new solution in Visual Studio 2017, y'all should do the following:

  • Open Tool Menue > Options.
  • At Source Command > Plug-in Selection > Brand sure that the Git is selected.

How to use the GitHub Extension for Visual Studio 2017?

Connect

Once y'all have installed GitHub Extension for Visual Studio 2017, you should connect to your GitHub account by doing the following:

  • From Team menu, click Manage Connections.
  • Click Connect to connect to your GitHub account. Or signup in case, you don't have a GitHub account by clicking SignUp.
  • Provide your GitHub account credential > Sign In.
  • Ascertain the repository name, and optionally ready its description.
  • Select repository path on your local estimator.
  • Specify the license as y'all prefer > then click Create.

Once y'all take connected to your GitHub account, you will accept three options:

Create


To create a new repository, you should exercise the following:

  • Click Create push, Define the repository proper noun, and optionally prepare its clarification.
  • Select repository path on your local calculator.
  • Specify the license as yous prefer > then click Create.

Clone

A clone is a copy of a repository that lives on your computer and connected to the remote version in GitHub so when you're online y'all volition be able to sync the changes between the two.

To Clone a Repository, y'all should do the following:

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

Sign Out

To log off your GitHub account from Visual Studio.


What're the main GitHub Extension functionalities?

In this section, we volition explicate the chief functionalities of the Github Extension.


Changes

To track and publish the local repository changes.

Branch

A co-operative is a parallel version of a repository. It is independent within the repository just does not affect the primary or main branch allowing yous to work freely without disrupting the "alive" version. When yous've made the changes y'all want to brand, you lot tin can merge your branch dorsum into the master branch to publish your changes.

Issue

Issues are suggested improvements, tasks or questions related to the repository. Issues can exist created by anyone (for public repositories), and are chastened by repository collaborators. Each result contains its own give-and-take forum, can exist labeled and assigned to a user.

Pull Asking

Pull requests are proposed changes to a repository submitted past 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 consequence.

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. One time these changes are fetched you can compare them to your local branches (the code residing on your local car).

Pull

Pull refers to when yous are fetching in changes and merging them. For instance, if someone has edited the remote file you're both working on, y'all'll want to pull in those changes to your local re-create so that it's up to date.

Commit

A commit, or "revision", is an private modify to a file (or set of files). It'due south like when y'all relieve a file, except with Git, every time you relieve information technology creates a unique ID that allows y'all to keep a record of what changes were made when and past who. Commits usually comprise a commit message which is a brief description of what changes were fabricated.

Sync

To Share your changes with the Server.

Push

Pushing refers to sending your committed changes to a remote repository, such as a repository hosted on GitHub. For instance, if yous change something locally, you lot'd want to then push those changes so that others may access them.


How to add a new solution to GitHub?

To add a new solution to a local Git Repository, y'all should do the following:

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

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

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

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

  • Open GitHub site > Sign in with your GitHub Business relationship.
  • Click your Repositories > Select your Co-operative.
  • You should now observe the solution has been synced and pushed to your online repository successfully.

How to add together an existing solution to GitHub?

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

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

Known Result.

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

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

Solution:

  • The new update of Visual Studio should solve this issue, every bit a temporary solution change the path of your Local Repository that will solve the consequence.If you nevertheless confront the outcome check
    • Git failed with a fatal fault: unable to access 'https://git.developernote.com/examples/': SSL certificate problem: self signed certificate.
    • Unable to clone Git repository due to self signed certificate.

How to make a Private Repository?

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

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

To  make a Public Repository to Private Repository, you lot should do the following:

  • Open GitHub site, Sign In.
  • Open up your repository, click Settings.
  • Roll downwardly to the Danger Zone, y'all should discover Brand this repository private.
  • In instance, you lot are using a free plan, yous will be asked to upgrade your current gratuitous program to developer program to brand this repository private by paying $7 monthly or $84 yearly.

How to delete a GitHub Repository?

This characteristic is not available in GitHub extension, information technology's bachelor in the GitHub Web site.

Notation: Once you lot delete a repository, there is no going back. Please be sure.

To delete your repository, you should do the following:

  • Open GitHub site, Sign In.
  • Open your repository, click Settings.
  • Whorl downward to the Danger Zone, you should discover Delete this repository.
  • Provide the repository proper noun every bit a type of confirmation, then click I sympathise.

Conclusion

In this commodity, we have explored theGitHub Extension for Visual Studio 2017.
Return to Meridian

Run into Also

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