You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sessions/c1s2/6_homework.md
-37Lines changed: 0 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -20,41 +20,4 @@ Finish off both CSS exercises from class. Check your solutions online:
20
20
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.
21
21
{% endexercise %}
22
22
23
-
### Get your domain name to point to your GitHub Page
24
23
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
-

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
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.
0 commit comments