Skip to content

Commit 628ee87

Browse files
committed
Added notes for HTTPS Authentication
1 parent cf3bc73 commit 628ee87

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,36 @@ You will need to make your own *private* copy of the notebooks, by following the
123123
git clone https://github.com/username/PartIA-Computing-Michaelmas_CSRid
124124
```
125125
126+
127+
### Note on HTTPS Authentication (Using Personal Access Tokens)
128+
129+
If you are using the HTTPS method, GitHub no longer accepts your regular password.
130+
Instead, you need to use a **Personal Access Token (PAT)** as your password.
131+
132+
To generate a PAT:
133+
134+
1. Go to **Settings**:
135+
![settings](images/settings.png)
136+
137+
2. Click **Developer settings**:
138+
![developer settings](images/developer_settings.png)
139+
140+
3. Choose **Personal access tokens → Tokens (classic)**, then click **Generate new token (classic)**:
141+
![token create](images/token_create.png)
142+
143+
4. Check **all items** (scopes) to grant full access:
144+
![token checklist](images/token_checklist.png)
145+
146+
5. After creating the token, make sure to **copy it immediately** — GitHub will not show it again:
147+
![token print](images/token_print.png)
148+
149+
When prompted for credentials during `git push`:
150+
151+
* **Username:** your GitHub username
152+
* **Password:** the **Personal Access Token (PAT)** you just created
153+
154+
155+
126156
### Get to the Correct File Location
127157
128158
Now and each time you start a new terminal, you will need to change to the directory containing your code, e.g. (changing _CSRid_):

images/developer_settings.png

325 KB
Loading

images/token_checklist.png

459 KB
Loading

images/token_create.png

305 KB
Loading

images/token_print.png

122 KB
Loading

0 commit comments

Comments
 (0)