Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 2.15 KB

1-5-integrate-IDE-github.md

File metadata and controls

56 lines (33 loc) · 2.15 KB

Activity 5: Integrate your IDE with your GitHub account

You will be creating and editing files in your IDE and so you need to enable it to work with GitHub to manage your code.

You will add authorisation in GitHub to allow your IDE to access your GitHub account using a GitHub personal access token .

How you integrate your IDE with GitHub is specific to the particular IDE, so follow the relevant documentation to complete this:

Notes on VS Code

If you are prompted to authorise your IDE to access GitHub then please accept e.g. the following shows the screens you may see using VS Code:

GitHub request to authorise VS Code

If you are not already logged in to GitHub you will be prompted to log in and then Authorise GitHub:

GitHub request to authorise VS Code

I experienced the following error message:

GitHub error

On repeating the steps I then accepted the following and was successful:

GitHub authorise success with token

Select open if you get this:

VSCode allow

The process automatically generated the token which you need to copy before closing this screen. Follow the 4 steps show in the image above:

  1. Copy the token
  2. Switch back to VS Code
  3. Click Signining in to github.com… in the status bar
  4. Paste the token and hit enter

VSCode signing in to github.com status bar message

VS Code Pull Requests and Issues extension

In VS Code you were asked to install the GitHub Pull Requests and Issues extension.

Pull requests are a mechanism when working with others to tell them about changes you pushed to a branch so others can review your changes before the branch is merged to the main, or base, branch.

Working with branches is not covered in this tutorial.