-
Notifications
You must be signed in to change notification settings - Fork 5
/
viewing.html
104 lines (86 loc) · 4.73 KB
/
viewing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Github Viewing</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<h1>Viewing a Course Repository</h1>
<img src="figures/octojedi.png" style="float: right; width: 30%; margin-right: 1%; margin-bottom: 0.5em;">
The course repository is located in a private organizational account in
the GitHub cloud. This means that it can only be viewed by invited GitHub
users, i.e., students in the class. During the initial weeks of the course
you will only be reading and "pulling" from the GitHub course repository. As we move
into the project phase you will start to <a href="workflow.html" >add
content</a> to your GitHub repository. <p>
<h2>Github account</h2>
By now you should have done these things:<p>
<ol>
<li>Signed up for an account on Github </li>
<li>Sent me your Github user name </li>
<li>Accepted my invitation to join the <tt>folchcourses</tt> Github organization </li>
<li>Installed Git for Windows (Windows) or GitHub Desktop (Mac) on your personal machine</li>
</ol>
If you have not done all of these, <a href="new_account.html" target="_blank" >follow the steps here</a>.
<p>
<h2>Viewing the course repository online</h2>
In what follows we will be using the example of a student named
<tt>Joe Johnson</tt>, with the Github user name of <tt>geonole</tt>. You
should replace this with your GitHub user name in the steps that
follow.<p>
<ol>
<li>Login to Github</li>
<li>Click your user icon in the upper-right corner. <a href="images/wf_step2.png" >example</a></li>
<li>Update your profile. <a href="images/wf_step3a.png" >example</a></li>
<li>Click the <tt>folchcourses</tt> icon in the lower-left corner. <a href="images/wf_step3b.png" >example</a></li>
<li>Click the repository with your course name, semester and year. <a href="images/view_1.png" >example</a></li>
<li>Here you will find the syllabus, exercises and other course content. <a href="images/view_2.png" >example</a></li>
</ol>
<h2>Cloning the course repository to your local hard drive</h2>
Cloning allows you to pull course content from the cloud (hosted at
github.com) to your personal computer. The cloning process will create a
special directory on your computer that synchronizes the files in the
cloud and the files on your computer. Unlike <a
href="http://dropbox.com">Dropbox</a>, you explicitly control when a
synchronization happens using the Git software. Follow these steps to get this
setup on your computer. Note: you only need do this the first time you
connect to a remote repository.<br><br>
<ol>
<li>Create a new directory on your hard drive where you want to keep the course materials from GitHub.
<li>Open Terminal (Mac) or Anaconda Prompt (Windows).</li>
<li>Use the <tt>cd</tt> command to navigate to the new directory you
just created. For example, if you have a directory called
<tt>python_class</tt> in your <tt>Documents</tt> directory then
type:
<ul>
<li><tt>cd Documents</tt>
<li><tt>cd python_class</tt>
</ul>
<li>Get course repository</li>
<ul>
<li>Go to the course webpage on GitHub > Click the "Clone or
download" link (green button in the upper-right) > Highlight
the entire URL it shows and copy it.
<li>Go to the command line. Type <tt>git clone</tt> and then
paste the URL you just copied. It should look something like this:<br>
<tt>git clone
https://github.com/folchcourses/geo5934_fall2015.git</tt> <br>
If it looks good, hit enter.
<li>Enter your GitHub user name and password if asked.
<li>If all went well, you can view the current course files on your
hard drive in Finder (Mac) or File Explorer (Windows).
</ul>
</ol>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
</html>