Skip to content

Commit 3d64d74

Browse files
committed
Regig session 2
1 parent 1b0b503 commit 3d64d74

File tree

5 files changed

+49
-37
lines changed

5 files changed

+49
-37
lines changed

_sessions/c1s2/1_recap.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "Recap from last time"
3+
---
4+
5+
### HTML/CSS
6+
7+
* Webpage is just a collection of files: HTML, CSS & Javascript.
8+
* We can edit these files locally.
9+
* We can create them locally (using a text editor) and view then in a
10+
browser.
11+
12+
### Command line
13+
14+
* `ls`
15+
* `cd coding_course`
16+
* `cd ..`
17+
18+
{% exercise %}
19+
1. Open the command line ('Terminal' on a mac, 'Command prompt with Ruby
20+
on Rails' on windows)
21+
2. Use `cd` and `ls` to navigate to your `coding_course` folder.
22+
{% endexercise %}
23+
24+
### Something new
25+
26+
{% exercise %}
27+
1. Make sure you're in your `coding_course` folder.
28+
2. Do an `ls`.
29+
3. Type `git clone https://github.com/code61/html2.git`
30+
4. Do an `ls`.
31+
{% endexercise %}
32+
33+
You just used git to get the code for the next exercise onto your
34+
laptop!

_sessions/c1s2/6_homework.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,41 +20,4 @@ Finish off both CSS exercises from class. Check your solutions online:
2020
4. (Optional) Read [this article](https://www.inkling.com/read/dreamweaver-cs6-missing-manual-david-sawyer-mcfarland-1st/chapter-4/understanding-links) about absolute vs. relative links.
2121
{% endexercise %}
2222

23-
### Get your domain name to point to your GitHub Page
2423

25-
The point of this exercise is to set up your domain name to point towards your new GitHub pages site.
26-
27-
As GitHub hosts many different pages at their IP address, it isn't quite as simple as pointing your domain address towards that IP address. There are two things you need to do to get your domain name working with your GitHub pages site:
28-
29-
1. Tell your domain registrar (e.g 123-reg or godaddy) to point your domain name towards GitHub's IP address.
30-
2. Tell GitHub that requests to your domain name should come to your site.
31-
32-
Github explains this [here](https://help.github.com/articles/setting-up-a-custom-domain-with-pages).
33-
34-
##### Pointing your domain name towards GitHub
35-
36-
For the first bit you need to log in to your domain registrar and change the DNS settings. You want an *A-record* pointing to `204.232.175.78` (which is github.com). Note that it can take up to a couple of days for DNS changes to propagate.
37-
38-
If you're using 123-reg, your should log in, select your domain from the list, and click "Manage". You should then go to "Manage DNS".
39-
40-
![123-reg DNS Settings](/assets/dns_settings.png)
41-
42-
(The @ dns entry stands for the root or bare domain.)
43-
44-
{% exercise %}
45-
Log in to your domain registrar and set an A-record to point towards GitHub.
46-
{% endexercise %}
47-
48-
Your changes won't take effect immediately.
49-
50-
##### Tell github to expect requests for your domain name
51-
52-
{% exercise %}
53-
1. Open Sublime Text and create a new file.
54-
2. Write your domain name on the first line of the new file e.g:
55-
56-
mydomain.com
57-
58-
3. Save that file as `CNAME` (uppercase, with no extension) in your `first_site` folder
59-
4. Commit your change and then push to github.
60-
{% endexercise %}
File renamed without changes.

_sessions/c1s2/_5_push_to_github.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: "Pushing to GitHub"
3+
---
4+
5+
Git is a version control system. It allows you to keep the entire history of your code, and makes it easy to share and collaborate with others.
6+
7+
### Using git on a folder
8+
9+
Git works on a folder level:
10+
11+
On your laptop, a git repository is just a **special type of folder**. Any folder can be made into a git repository (but not all folders should - e.g. don't make your entire documents directory into a git repository, you'll run into problems). You'll normally make a new git repository for each coding project you work on.
12+
13+
If you look inside the folder, you won't see all the different versions stored there (they are actually there - just stored inside a hidden folder called `.git`) - you'll only see the files that are in your **working copy**. Normally this working copy will contain the files from the last commit on the master branch, along with any changes you've made.
14+
15+
### Making a commit

0 commit comments

Comments
 (0)