Skip to main content

GitKit (2nd ed.) Learn git and GitHub in Context

Section 2.3 GitHub Set Up

You will be using GitHub in many of the exercises in this text. In order to use GitHub it is necessary that you have an account and a Personal Access Token. You will also configure your GitHub Codespaces to help conserve your free usage time.

Subsection 2.3.1 GitHub Account

Exercises

1.
If you do not have a GitHub account, or would like to have a separate account just for this course, you can create a GitHub account here: https://github.com/signup.
When you have a GitHub account to use for this class, move on to the next exercise.
2.
Give the full URL to your GitHub profile, for example https://github.com/yourUsername

Subsection 2.3.2 GitHub Personal Access Token

When starting your development environment for the first time (in SectionΒ 2.8Β Your Development Environment) you will be asked to enter a Personal Access Token (PAT) from GitHub.
A PAT is like a password but has some security benefits. In particular, you can have multiple different PATs. Each one can have different limits on what can be done with it and each one can be revoked individually without affecting the others.

Exercises

1.
Follow GitHub’s instructions for creating a classic personal access token. Be sure to select Tokens (classic) - you will need to do this twice - and to choose "repo" for the "scopes and permissions": Creating a Personal Access Token (classic).
Be sure to copy and paste your PAT somewhere safe – maybe e-mail it to yourself. You will not be able to retrieve it again after you leave the page.
(a)
I have created my PAT and it saved somewhere safe for later use.
  • True.
  • Correct!
  • False.
  • You will need the PAT for later tasks so it is important that you have created and saved it.
(b)
What are the first 4 characters of your GitHub PAT?
  • Check again. You may need to re-create your PAT.
  • Correct!
  • You have created a fine-grained token. Create a new token and be sure to select "classic" both times.
Hint.
Be sure you selected "classic" token both times when prompted. If necessary create a new PAT.

Subsection 2.3.3 Setting the GitHub Codespaces Timeout

The GitKit development environment runs in GitHub Codespaces. GitHub provides you with approximately 60 hours per month of free Codespaces use. By default the GitKit development environment will timeout after 30 minutes of inactivity. It is recommended that you reduce this timeout to 15 minutes to avoid accidentally consuming your allotted free usage.

Exercises

You have attempted of activities on this page.