-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
244 lines (216 loc) · 9.78 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="./images/TabLogo.png" type="image/x-icon">
<title> Git Line </title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="per">
<h1 id="personal"> 😻 Git Hub Commands 😻</h1>
</div>
<div class="timeline">
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git init </h2>
<small> Description : </small>
<p> This Command Will Initilizes an Hidden Folder in the Directory</p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git status </h2>
<small> Description : </small>
<p> This Command Will Show the all files in the directory in which it tells the All files are in Tracked Stage Or UnTracked Stage </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git add . </h2>
<small> Description : </small>
<p> The command "git add ." is used in Git version control to add all the changes in the current directory to the staging area. and Also it also converts all Untracked Files to The Tracking Files Stage. </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git config user.name </h2>
<small> Description : </small>
<p> This Command Will Tell About The Any Github User Name is Registered with Your Local Machine. (For One Local Machine can Accept Only One Github Account Crenditials). </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git config user.email </h2>
<small> Description : </small>
<p> his Command Will Tell About The Any Github Attached Mail Or Personal Mail is Registered with Your Local Machine. (For One Local Machine can Accept Only One Github Account Crenditials). </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git config user.name Github_Username </h2>
<small> Description : </small>
<p> When You Run This Command It will Register Your Github UserName With Your Local Machine. </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git config user.email Email_ID </h2>
<small> Description : </small>
<p> When You Run This Command It will Register Your Email_ID With Your Local Machine. (The Email_ID Should Be Connected to Your Github Account) </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git commit -m " Write Your Message " </h2>
<small> Description : </small>
<p> When You Run This Command It Will Make an Commit Of All Files In that Directory. (In Simple Words Commit Is LIke An Svaing Files) </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git remote -v </h2>
<small> Description : </small>
<p> This Command Will Show the All Remote Names Which Are Connected To The Github Repository </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git remote add Remote_Name Repository_Link </h2>
<small> Description : </small>
<p> This Command Will Make An Remote Connection Between The Your Local machine And Github Repository. (You Can Write Any Name in the Place of Remote_Name). </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git branch </h2>
<small> Description : </small>
<p> This command will inform you of the branch in which your directory is now active. </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git branch Branch_Name </h2>
<small> Description : </small>
<p> This Command Will Create An New Branch With An Existing Name. </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git checkout Branch_Name </h2>
<small> Description : </small>
<p> This Command Will Switch Between The Branches. </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git push Remote_Name Branch_Name </h2>
<small> Description : </small>
<p> This Command Will Push All Your Files in The Local Directory To The Remote Github Repository. (Make Sure That The Remote_Name Is Linked With Which Repository). </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git pull Remote_Name Branch_Name </h2>
<small> Description : </small>
<p> This Command is used to fetch and merge changes from a remote repository into your Local repository. </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git fetch Remote_Name Branch_Name </h2>
<small> Description : </small>
<p> This Command is used to retrieve the latest commits and changes from a remote repository without merging them into your local Directory.</p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git merge Branch_Name </h2>
<small> Description : </small>
<p> This Command Will tell About The Git attempts to merge the changes from the "main" branch into your current branch, incorporating any new commits and modifications that have been made on the "main" branch since the branches diverged. Git automatically combines the changes, and if there are no conflicts, it creates a new merge commit that joins the two branches together. (Here "main" is an Branch_Name) </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git clone Repository_URL </h2>
<small> Description : </small>
<p> This Command Will Tell That It Will Create an Clone or Duplicate Directory Of That Github Repository. </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git log </h2>
<small> Description : </small>
<p> This Command Will Show The All Past and Present Commits </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git remote rename Old_Name New_Name </h2>
<small> Description : </small>
<p> This command renames a remote repository. If you have multiple remotes and want to change the name of one of them, you can use this command to update the remote's name. </p>
<span class="right-container-arrow"> </span>
</div>
</div>
<div class="container left-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git remote remove Remote_Name </h2>
<small> Description : </small>
<p> This command removes a remote repository from your local Git repository. It disconnects the local repository from the specified remote repository. </p>
<span class="left-container-arrow"> </span>
</div>
</div>
<div class="container right-container">
<img src="images/git2.png">
<div class="text-box">
<h2> <bold> Command : </bold> git remote show Remote_Name </h2>
<small> Description : </small>
<p> This command displays detailed information about a specific remote repository. It shows information such as the remote's URL, the branches it tracks, and the last fetched or pushed references. </p>
<span class="right-container-arrow"> </span>
</div>
</div>
</div>
<!-- <script src="./index.js"></script> -->
</body>
</html>