-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
129 lines (104 loc) · 3.52 KB
/
index.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://getbootstrap.com/docs/5.2/assets/css/docs.css" rel="stylesheet">
<title>GitHub</title>
</head>
<body>
<nav class="navbar bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="github.gif" alt="Logo" width="60" height="45"
class="d-inline-block align-text-top position-absolute start-50">
<h3>GitHub</h3>
</a>
</div>
</nav>
<div class="mx-auto" style="width: 850px;">
<h2>GitHub commands manual for the Terminal</h2>
<ol class="fs-3">
<li>
<h3>To add a file - which will send the file to staging area</h3>
<p>git add "file name"</p>
</li>
<li>
<h3>To check status</h3>
<p>git status</p>
</li>
<li>
<h3>To commit changes comment</h3>
<p>git commit -m "changes comment"</p>
</li>
<li>
<h3>To publish in the GitHub</h3>
<p>git push origin main</p>
</li>
<li>
<h3>To delete a file</h3>
<p>git add "file name"</p>
</li>
<li>
<h3>To get update changes made in GitHub file - Download</h3>
<p>git pull</p>
</li>
<li>
<h3>To upload the file/changes made in repository</h3>
<p>git init</p>
<p>git remote add origin</p>
</li>
<li>
<h3>To add bulk folder/files - which moves to staging area</h3>
<p>git add.</p>
<p>git commit -m "change comments"</p>
</li>
<li>
<h3>To change directory folder</h3>
<p>cd ..</p>
<p>cd "file name"</p>
</li>
<li>
<h3>Create branch - master</h3>
<p>git branch</p>
<p>git push origin master</p>
</li>
<li>
<h3>Change the name of branch</h3>
<p>git branch -m "folder name"</p>
</li>
<li>
<h3>To check all the branches</h3>
<p>git branch -a</p>
<p>git pull</p>
</li>
<li>
<h3>To get inside of the branch folder</h3>
<p>git checkout "file name"</p>
</li>
<li>
<h3>To check branch name</h3>
<p>git branch -a</p>
</li>
<li>
<h3>To check the difference between the main and branch</h3>
<p>git diff "file name"</p>
</li>
<li>
<h3>To merge the file with main</h3>
<p>git merge "file name"</p>
<p>git push origin main</p>
</li>
<li>
<h3>Pull request raising to admin</h3>
<h4>It can be requested in the website - create pull request</h4>
</li>
<li>
<h3>Clear all in terminal</h3>
<p>clear</p>
</li>
</ol>
</div>
</body>
</html>