-
Notifications
You must be signed in to change notification settings - Fork 125
/
pull.html
79 lines (61 loc) · 3.7 KB
/
pull.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Super-newbie coder's guide to Hacktoberfest</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@900&family=Nunito&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script src="scripts.js" defer></script>
</head>
<body>
<div class="container">
<header>
<nav>
<img id="bars" src="./img/hamburger-icon.svg" alt="">
<ul id="content">
<li><a href="index.html" >HOME</a></li>
<li><a href="contribute.html">HOW TO CONTRIBUTE</a></li>
<li><a href="fork.html">FORK THE CODE</a></li>
<li><a href="pull.html" class="nav-active">MAKE A PULL REQUEST</a></li>
<li><a href="https://github.com/emmalearnscode/guide-to-HF" target="_blank">GITHUB</a></li>
</ul>
</nav>
</nav>
<h1><span id="the">THE</span>
<br><span id="super">Super-Newbie Coder's</span>
<br>GUIDE TO
<br><span>Hacktoberfest</span></h1>
</header>
<main>
<section class="add-commit-push-instructions">
<h2>Pushing your Code to your Forked Repo</h2>
<p>Before making a pull request you have to get your code from your computer back up to your forked GitHub repository.
To do that do the following in the command line:
</p>
<ol class="fork-clone-code">
<li>Make sure you are in the project working directory. To do that use the command <code>cd folder-name\folder-name</code></li>
<li>There are three commands you need to use in the following order <br><code>git add .</code>
<br> <code>git commit -m "Add a short message about the changes you made"</code>
<br> <code>git push</code></li>
<img class="GH-img" src="./img/add-commit-push.png" alt="Command line showing how to add, commit and push files to a github repo">
</ol>
</section>
<section class="pr-instructions">
<h2>Making your Pull Request</h2>
<ol class="fork-clone-code">
<li>Go to your forked repository. There you should find the "Make New Pull Request" button in green. Click on the button.
<img class="GH-img" src="./img/new-pr-btn.png" alt="What the new pull request button looks like"></li>
<li>There you will see a screen asking you to compare two repositories. Make sure the base repository is the original <a href="https://github.com/emmalearnscode/guide-to-HF">https://github.com/emmalearnscode/guide-to-HF</a> and the compare button shows the name of your forked repository.
<img class="GH-img" src="./img/open-pr.png" alt="How to open a pull request on GitHub"></li>
<li>Add any messages or comments and press the green "Create pull request button</li>
<li>And that's it! Now you sit back happily and wait for your PR to be reviewed. It can take some time for your pull request to go through as all will be manually reviewed before being accepted</li>
<li>Your pull request will be marked with the <img class="GH-img"id="hf-label" src="./img/hf-accepted.png" alt="Hacktoberfest label"> label when merged.
</li>
</ol>
<h3>Happy Coding!</h3>
</section>
</main>
</div>
</body>
</html>