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
 1 
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.7) 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: Creating a Personal Access Token (classic)
 2 
docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-personal-access-token-classic
.
When doing so be sure to:
  • Choose “repo” for the “scopes and permissions.”
  • 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.
2.
    What are the first 4 characters of your GitHub PAT?
  • gpat
  • ghp_
  • All GitHub PATs begin with ghp_
  • 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

1.
Use the following steps to adjust the timeout for your Codespaces, including the GitKit developent environment.
(b)
Scroll down to the section labeled "Default idle timeout", adjust the timeout to 15 minutes, and click "Save".
You have attempted 1 of 3 activities on this page.