-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab_014.html
More file actions
79 lines (74 loc) · 2.81 KB
/
lab_014.html
File metadata and controls
79 lines (74 loc) · 2.81 KB
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
<!doctype html>
<html lang="en">
<head>
<title>
Lab 14 - Committing Changes
</title>
<meta charset="UTF-8" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta "="" content=" width=device-width, initial-scale=1.0" name="viewport" />
<meta content="A guided tour through the fundamentals of Git, HTML, & CSS" name=" description" />
<meta content="#0000ff" name="theme-color" />
<link href="manifest.json" rel="manifest" />
<link href="css/reset.css" media="screen" rel="stylesheet" />
<link href="css/screen.css" media="screen" rel="stylesheet" />
<link href="css/prism.css" rel="stylesheet" />
</head>
<body data-lab-id="14">
<a class="skip-to-content" href="#content" tabindex="1">
Skip to content
</a>
<main class="layout">
<nav id="index">
<p class="link-home">
<a href="index.html">
<span>Hack4Impact Starter Pack</span>
</a>
</p>
<button class="link-menu">
Menu
</button>
<nav tabindex="0">
<ol>
</ol>
</nav>
</nav>
<div id="content" tabindex="-1">
<h1 class="lab_title">
<em>Lab 14</em>
Committing Changes
</h1>
<h2>Goals</h2>
<ul>
<li>Learn how to commit changes to the repository</li>
</ul>
<h2>Commit the Change</h2>
<p>Run the following command to commit your changes from the staging area to your <code>Git</code> repository.
Remember to include the <code>-m</code> flag.</p>
<h3><b>Execute</b></h3>
<pre class="command-line" data-prompt="$" data-filter-output="(out)"><code class="language-git">git commit -m "feat: add content to README.md"</code></pre>
<h3><b>Output</b></h3>
<pre class="command-line" data-prompt="$" data-filter-output="(out)"><code class="language-git">git commit -m "feat: add content to README.md"
(out)[main c5ac52c] feat: add content to README.md
(out) 1 file changed, 4 insertions(+)
(out)</code></pre>
<h2>Check the Status</h2>
<p>Let's check the status again to make sure it's committed.</p>
<h3><b>Execute</b></h3>
<pre class="command-line" data-prompt="$"><code class="language-git">git status</code></pre>
<h3><b>Output</b></h3>
<pre class="command-line" data-prompt="$" data-filter-output="(out)"><code class="language-git">git status
(out)On branch main
(out)nothing to commit, working tree clean
(out)</code></pre>
<p>The working directory is clean and ready for you to continue!</p>
</div>
</main>
<script src="js/ui.js" type="text/javascript"></script>
<script src="js/prism.js" type="text/javascript"></script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({startOnLoad: true, theme: "base"});
</script>
</body>
</html>