Skip to content

Commit

Permalink
Update tools.md
Browse files Browse the repository at this point in the history
  • Loading branch information
novillo-cs authored Sep 10, 2024
1 parent d87865f commit 91ac0ed
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions content/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,32 +62,45 @@ Then, follow these steps to create an ssh key, connect to GitHub using SSH, and

`ssh-keygen -t ed25519`

Check if your key was generated:
```
cd .ssh/
ls
```
It will ask you to enter a file in which to save the key. **Do not type anything, just press `Enter`**. The keys will be saved in the default path that it is displayed between parenthesis:

![image](files/images/ssh_key_path.png)

Then, it will ask you to enter a passphrase. Notice when you type this passpharase, it will not show up but you are typing. When you are done hit `Enter`:

![image](files/images/passpharase.png)

Finally, it will ask you to enter the passphrase again to confirm:

![image](files/images/passpharase_again.png)

Check if your keys were generated:

`cd .ssh/` => Normally, this is the defauld path. Double check the path were the keys were saved in the previous steps.

`ls` => If using Windows and `ls` does not exist, try `dir`.
You should see your private key (`id_ed25519`) and public key (`id_ed25519.pub`) inside that directory.

2. Log in to your GitHub account.
3. Log in to your GitHub account.

Click on your profile picture (right-top). You will see a menu; click on [Settings](https://github.com/settings/keys).

You will see a menu on the left. Click on SSH and GPG keys and click on Add New SSH key.

You will give a title to that key. The key type should be "Authentication Key" and copy your public key (the content inside the file id_ed25519.pub) in the field "Key". Make sure you do not add spaces or blank lines.

3. Go to the following [link](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection) and test your SSH connection.
4. Go to the following [link](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection) and test your SSH connection.

4. Let's clone your repository on your local computer:
5. Let's clone your repository on your local computer:

Go to your assignments repository that you accepted for this class in GitHub (assignments repo must be accepted only once, check GC for to have the link). You will see a green button, "Code". You must click on that button and select SSH to have the appropriate link that will allow you to clone your repository and copy the link you see there./

5. Create a folder `CS_Foundations` anywhere in your computer.
6. Create a folder `CS_Foundations` anywhere in your computer.

6. On your terminal, go inside the folder `CS_Foundations` to clone your repository and type:
7. On your terminal, go inside the folder `CS_Foundations` to clone your repository and type:
```
git clone PASTE_THE_LINK_YOU_COPIED_FROM_GITHUB_(git@...)
```

7. Go inside the folder that appears after you execute the clone command, and you will see the files you have on your GitHub repository.
8. Go inside the folder that appears after you execute the clone command, and you will see the files you have on your GitHub repository.

0 comments on commit 91ac0ed

Please sign in to comment.