-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgit_is_amazing.html
69 lines (65 loc) · 2.23 KB
/
git_is_amazing.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intro to Git</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
padding: 20px;
line-height: 1.6;
}
h1, h2 {
color: #333;
}
code {
font-family: monospace;
background-color: #eee;
padding: 2px 4px;
border-radius: 4px;
}
.step {
margin-bottom: 20px;
background-color: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.step h2 {
color: #007bff;
}
</style>
</head>
<body>
<h1>Hello, this is a demo for Git.</h1>
<div class="step">
<h2>1. Clone this repo</h2>
<p>- You can use HTTP or SSH. HTTP will be easy for this tutorial.</p>
</div>
<div class="step">
<h2>2. Now let's branch out!</h2>
<p>- We have so many hackers working on this one repo!!</p>
<code>git checkout -b <your-name>-git-is-great</code>
</div>
<div class="step">
<h2>3. Let's make a change!</h2>
<p>- Add your name to the list below:</p>
<p> Create a new bullet and add your name to the website!</p>
<ul>
<li>Hi, I am Aaryan Jain, I am a deep sea diver at hackbeanpot 2024!</li>
<li>Hi, I am Emma Vonbuelow, I am a deep sea diver at hackbeanpot 2024!</li>
</ul>
<p>Ensure you pull the latest changes from the main branch before adding your name to minimize merge conflicts.</p>
<code>git pull origin main</code>
<p>- Now add your change to git</p>
<code>git add .</code> or <code>git add <file_path></code>
<p>- Now what's a commit and how do I commit my change?</p>
<code>git commit -m "My first HBP commit"</code>
<p>- Now let's push your branch to the internet through Github</p>
<code>git push origin <branch-name></code>
<p>- Now go to GitHub and open your first pull request.</p>
</div>
</body>
</html>