forked from kchresfield/lima.github.io
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcommandList.html
115 lines (108 loc) · 3.76 KB
/
commandList.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
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<title>Command List</title>
<style>
body {
background: rgb(185, 215, 185);
color: rgb(45, 45, 45);
padding: 10px;
font-family: arial;
}
header {
font-size: 1.5em;
font-weight: bold;
}
#all-contents {
max-width: 800px;
margin: auto;
}
/* navigation menu */
nav {
background: rgb(150, 16, 220);
margin: 0 auto;
display: flex;
padding: 10px;
margin-bottom: 20px;
}
nav header {
display: flex;
align-items: center;
color: rgb(255, 255, 255);
flex: 1;
}
nav ul {
list-style-image: none;
}
nav li {
display: inline-block;
padding: 0 10px;
}
nav a {
text-decoration: none;
color: #fff;
}
/* main container area beneath menu */
main {
background: rgb(245, 238, 219);
display: flex;
}
.sidebar {
margin-right: 25px;
padding: 10px;
}
.sidebar img {
width: 200px;
}
.content {
flex: 1;
padding: 15px;
}
.interests header {
font-size: 1.25em;
}
</style>
</head>
<body>
<div id="all-contents">
<nav>
<header>Bootcamp: Papa</header>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="helpfulLinks.html">Helpful Links</a></li>
<li><a href="homework.html">Homework</a></li>
<li><a href="commandList.html">Command List</a></li>
</ul>
</nav>
<main>
<div class="sidebar">
</div>
<div class="content">
<h1>Command Cheat Sheet</h1>
<h2>Republish lodown project to npm</h2>
<h4>Update the version number in your lodown package.json file</h4>
<h4>in the terminal, (~/environment/lodown) run</h4>
<em><h4>npm publish</h4></em>
<h4>in another terminal (~/enviornment/gitHubName.github.io) run</h4>
<em><h4>npm install underscore</h4></em>
<em><h4>npm link underscore</h4></em>
<br>
<h2>Change into your repository folder</h2>
<h4>cd "your-github-username"-github.io</h4>
<br>
<h2>Pushing changes to GitHub</h2>
<h4>git add -A (To add all the files you want to add to github)</h4>
<h4>git status (To see the files you are about to add to github)</h4>
<h4>git commit -m "<\your commit message>" (To attach a message to all the files)</h4>
<h4>git push (To push all of your work up to github) </h4>
<br>
<h2>Change out of a directory</h2>
<h4>cd ..</h4>
<br>
<h2>Move files or folders in Cloud9</h2>
<h4>mv <\current-location> <\desired-location></h4>
</div>
</main>
</div>
</body>
</html>