Skip to content
Snippets Groups Projects
Commit 775fe857 authored by JINLANG WANG's avatar JINLANG WANG
Browse files

update lab2

parent 513506b3
No related branches found
No related tags found
No related merge requests found
Pipeline #735635 passed
Labs/Lab2/git-pr/1.png

79.4 KiB | W: | H:

Labs/Lab2/git-pr/1.png

169 KiB | W: | H:

Labs/Lab2/git-pr/1.png
Labs/Lab2/git-pr/1.png
Labs/Lab2/git-pr/1.png
Labs/Lab2/git-pr/1.png
  • 2-up
  • Swipe
  • Onion skin
Labs/Lab2/git-pr/10.png

321 KiB

Labs/Lab2/git-pr/11.png

241 KiB

Labs/Lab2/git-pr/2.png

283 KiB | W: | H:

Labs/Lab2/git-pr/2.png

195 KiB | W: | H:

Labs/Lab2/git-pr/2.png
Labs/Lab2/git-pr/2.png
Labs/Lab2/git-pr/2.png
Labs/Lab2/git-pr/2.png
  • 2-up
  • Swipe
  • Onion skin
Labs/Lab2/git-pr/3.png

291 KiB | W: | H:

Labs/Lab2/git-pr/3.png

38.7 KiB | W: | H:

Labs/Lab2/git-pr/3.png
Labs/Lab2/git-pr/3.png
Labs/Lab2/git-pr/3.png
Labs/Lab2/git-pr/3.png
  • 2-up
  • Swipe
  • Onion skin
Labs/Lab2/git-pr/4.png

1.21 MiB

Labs/Lab2/git-pr/5.png

148 KiB

Labs/Lab2/git-pr/6.png

260 KiB

Labs/Lab2/git-pr/7.png

24.2 KiB

Labs/Lab2/git-pr/8.png

1.38 MiB

Labs/Lab2/git-pr/9.png

415 KiB

Labs/Lab2/git-pr/PR_list.png

237 KiB

......@@ -46,7 +46,7 @@ Consider a concrete example of how to use all these commands. Say you find a bu
7. Do a pull request from your fork to the main pandas repo
8. Somebody in charge of main repo will consider your changes, and probably (a) click a button on GitLab to incorporate your changes, or (b) give you feedback to make the code better first, in which case you go back to step 4
## Step 2: SSH Keys
## Step 1: SSH Keys
These steps are similar to the previous lab. There, we created SSH keys
on your laptop, allowing you to connect laptop=>VM. Now, we're
......@@ -63,26 +63,34 @@ Run the following and **copy** the output:
cat ~/.ssh/id_rsa.pub
```
Go to "User settings", and Select "SSH keys".
Select "New SSH key".
Name the key "cs320-vm" (or whatever you like, really) and paste the
contents of `id_rsa.pub` to the "Key" box.
<img src="1.png" width=800>
Click "Add SSH Key" to finish adding it.
## Step 3: Create a Repo
## Step 2: Create a Repo
Create a project repo called
"cs320-lab2". Pick the group as your netID.
<img src="2.png" width=800>
This should create a project. Go to that project. Click the **Clone** button, and then click **https**. Copy the commands in it.
Create a public repo called
"cs320-lab2". Do NOT initialize the repo by clicking on any checkbox at this step. Do NOT select "Add a README file".
<img src="3.png" width=800>
This should create a repo. Go to that repo. Click the **Clone** button, and then click **http**. Copy the commands in it. We want to run those in a new directory on your computer. So run this in the terminal:
We want to run those in a new directory on your computer. So run this in the terminal:
```
mkdir cs320-lab2
cd cs320-lab2
```
Then paste and run `git clone ` + what you copied from GitLab. You shouldn't be
Then paste and run `git clone [what you copied earlier]`. You shouldn't be
asked for a password (if so, double check you did the parts of step
2+3 related to SSH correctly). If you see "Are you sure you want to
continue connecting?", type "yes" and ENTER.
......@@ -94,7 +102,7 @@ git config --global user.name "your_gitLab_username"
git config --global user.email "your_email"
```
Refresh the GitLab page for your repo. You should now see the first commit.
Refresh the GitLab page for your repo at https://git.doit.wisc.edu/jwang2775/lab2 (with your username instead of "jwang2775"). You should now see the first commit.
Make another change to README.md on your computer (for example, say
"hello world"), push those changes to GitLab, then refresh the page.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment