-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitHub.html
More file actions
101 lines (97 loc) · 4.56 KB
/
Copy pathGitHub.html
File metadata and controls
101 lines (97 loc) · 4.56 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<title>Git & GitHub</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<nav class="py-3 navbar navbar-expand-lg auto-hiding-navbar navbar-light" style="top: 0px;">
<div class="container">
<a class="navbar-brand py-0" href="#"><img src="Imgs/Git2.PNG" ></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-content" aria-controls="navbar-content" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbar-content" >
<ul class="navbar-nav mr-auto">
</ul>
<form class="form-inline my-2 my-lg-0">
<ul class="navbar-nav mr-auto " >
<li class="nav-item">
<a class="nav-link" href="index.html" ><h5> Home</h5></a>
</li>
<li class="nav-item">
<a class="nav-link" href=" contact us.html " ><h5>Contact Us </h5></a>
</li>
<li class="nav-item">
<a class="nav-link" href="GIT.html" ><h5>Git</h5></a>
</li>
<li class="nav-item active" style="color: #e7731f">
<a class="nav-link" href="GitHub.html"><h5>GitHub</h5> <span class="sr-only">(current)</span></a>
</li>
</ul>
</form>
</div>
</nav>
<hr style="border-top: 3px solid #e7731f;">
</div>
<div class="container">
<h2>GitHub</h2>
<br>
<h3>Whats is a Repository?</h3>
<p>A repository is usually used to organize a single project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets – anything your project needs.</p>
<h3>How to create a repository?</h3>
<ol>
<li>In the upper right corner, next to your avatar or identicon, click and then select New repository.</li>
<li>Name your repository hello-world.</li>
<li>Write a short description.</li>
<li>Select Initialize this repository with a README.</li>
</ol>
<br>
<img src="Imgs/Res.PNG" style="border: 2px solid #e7731f;"><br>
<br>
<h3>Whats is a Branch?</h3>
<p>Branching is the way to work on different versions of a repository at one time.</p>
<h3>How to create Branch?</h3>
<ol>
<li>Go to your new repository hello-world.</li>
<li>Click the drop down at the top of the file list that says branch: master.</li>
<li>Type a branch name, readme, into the new branch text box.</li>
<li>Select the blue Create branch box or hit “Enter” on your keyboard.</li>
</ol>
<br>
<img src="Imgs/Bra.PNG" style="border: 2px solid #e7731f;"><br>
<br>
<h3>Whats is a commits?</h3>
<p>On GitHub, saved changes are called commits. Each commit has an associated commit message, which is a description explaining why a particular change was made. Commit messages capture the history of your changes, so other contributors can understand what you’ve done and why.</p>
<h3>How to create a commits?</h3>
<ol>
<li>Click the README.md file.</li>
<li>Click the pencil icon in the upper right corner of the file view to edit.</li>
<li>In the editor, write a bit about yourself.</li>
<li>Write a commit message that describes your changes.</li>
<li>Click Commit changes button.</li>
</ol>
<br>
<img src="Imgs/Com.PNG" style="border: 2px solid #e7731f;"><br>
<br>
<h3>Whats is a Pull Requests</h3>
<p>Pull Requests are the heart of collaboration on GitHub. When you open a pull request, you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch. Pull requests show diffs, or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red.</p>
<h3>How to create a Pull Requests?</h3>
<ol>
<li>Click the Pull Request tab, then from the Pull Request page.</li>
<li>select the branch you made, readme-edits, to compare with master (the original).</li>
<li>Look over your changes in the diffs on the Compare page, make sure they’re what you want to submit.</li>
<li>When you’re satisfied that these are the changes you want to submit, click the big green Create Pull Request button.</li>
<li>Give your pull request a title and write a brief description of your changes.</li>
</ol>
<br>
<img src="Imgs/Pull.PNG" style="border: 2px solid #e7731f;"><br>
<br>
</div>
<footer>
<nav class="navbar navbar-light" style="background-color: #e7731f;">
<span class="navbar-text " style="color: white;">
Git & GitHub For Beginner
</span>
</nav>
</footer>
</body>
</html>