or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Introduction to Git –- Fall 2023
Lecture C: Brief intro to SSH-keys and using GitHub
Slides: https://hackmd.io/@git-fall-2023/LC-github#/
GitHub
We are going to use GitHub for the part of the hands-on where you will be working together in groups, as well as part of the "Working with remotes" section.
Please go to
and sign up for an account if you do not already have one.
You will need to setup 2FA also.
Create a new SSH key for GitHub - Linux and macOS
This part will be repeated tomorrow before the section "Teamwork", but you should create and add your SSH key to GitHub now if you are doing the hands-ons for the "Working with remotes" section.
a. Do this
Create a new SSH key for GitHub - Linux and macOS, continued
id_rsa
):.ssh
folder, open the fileid_ed25519.pub
(id_rsa.pub
for legacy systems) and copy the entire contents. Do NOT add any newlines or whitespace!Create a new SSH key for GitHub - Windows
This part will be quickly repeated tomorrow before the section "Teamwork", but you should create and add your SSH key to GitHub now if you are doing any of the hands-ons for the "Working with remotes" section.
a. Do this
Create a new SSH key for GitHub - Windows, continued
id_rsa
instead) - change to what your key was called:.ssh
folder, open the fileid_ed25519.pub
(id_rsa.pub
on legacy systems) and copy it. Do NOT add any newlines or whitespace!Adding the SSH key to GitHub
Testing the SSH keys
$ ssh -T git@github.com