-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
624 lines (581 loc) · 24.4 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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Gitcom - Open Source Git Command List</title>
<!-- Bootstrap core CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet"
type="text/css">
<!-- Plugin CSS -->
<link href="node_modules/magnific-popup/dist/magnific-popup.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.css"/>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.semanticui.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/js/dataTables.semanticui.min.js">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.js">
<!-- Custom styles for this template -->
<link href="css/freelancer.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<style>
table {
width: 100%;
border-collapse: collapse;
border: 1px solid #000;
}
tr, th, td {
border: 1px solid #000;
padding: 15px;
text-align: left;
font-size: 17px;
}
#gittable th {
background-color: #ece2e2;
text-align: center;
}
input[type=search] {
width: 300px;
height: 35px;
font-size: 18px;
box-shadow: 0 0 0 0;
border: none;
outline: none;
padding: 15px;
border-radius: 10px;
background: #f5f5f5;
color: #000;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-152749248-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-152749248-1');
</script>
</head>
<body id="page-top" onload="digi()">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg bg-secondary fixed-top text-uppercase">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top"><span style="font-weight: 700; font-size: 25px;">GITCOM</span></a>
<button class="navbar-toggler navbar-toggler-right text-uppercase bg-primary text-white rounded" type="button"
data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive"
aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fa fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" href="about.html">About</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="https://github.com/arif98741/gitcom/issues" target="_blank">Issues</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="https://github.com/arif98741/gitcom/graphs/contributors" target="_blank">Contributors</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="https://github.com/arif98741/gitcom/" target="_blank">Github</a>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger" id="tt" style="color: #fff"
target="_blank">Github</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Header -->
<div class="container">
<div class="main-content">
<marquee behavior="" direction="" style="border: 1px solid #000; padding: 4px;"><h4>As you are continuously
supporting to <strong>Gitcom</strong>, it is inspiring to give more updates. Stay with
<strong>Gitcom</strong> always</h4></marquee>
<br>
<br>
<p style="color: #000; font-size: 17px; display: none;" id="welcomemessage">Welcome to <strong>Gitcom</strong>.
It is open source platform for getting and using git command list. Simply search on below datatable's search
box. You will get your expected command. To know something or request any feature just to <a
href="https://github.com/arif98741/gitcom/issues" target="_blank">here...</a></p>
<div class="row" id="table-header"><br>
<h3>Git Basic Command List</h3><br><br><br>
</div>
<div class="row">
<div class="col-md-8 offset-md-4">
<a href="#gitconfig" class="btn btn-success js-scroll-trigger"
style="width: 90px; padding-left: 10px; font-size: 18px;">Config</a>
<a href="#gitbranch" class="btn btn-primary js-scroll-trigger"
style="width: 90px; padding-left: 10px; font-size: 18px;">Branch</a>
<a href="#gitlog" class="btn btn-warning js-scroll-trigger"
style="width: 90px; padding-left: 10px; font-size: 18px;">Log</a>
<a href="#gittag" class="btn btn-info js-scroll-trigger"
style="width: 90px; padding-left: 10px; font-size: 18px;">Tag</a>
<a href="#bottom" class="btn btn-info js-scroll-trigger"
style="width: 90px; padding-left: 10px; font-size: 18px;">Bottom</a>
<br>
</div>
</div>
<table width="100%" id="gittable">
<thead>
<tr>
<th width="10">Serial</th>
<th width="35">Git Command</th>
<th width="35%">Description</th>
<th width="20%">Tags</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>git init</td>
<td>Initialize git repository in a folder</td>
<td>init,start git,open git</td>
</tr>
<tr>
<td>2</td>
<td id="gitconfig">git status</td>
<td>Information about changed/deleted files</td>
<td>status,condition,changes,modify</td>
</tr>
<tr>
<td>3</td>
<td>git config username.name Jhon</td>
<td>Config git user for the current git</td>
<td>git, config, user,name</td>
</tr>
<tr>
<td>4</td>
<td>git config username.email jhon@gmail.com</td>
<td>Config git email for the current git</td>
<td>git, config, user,email</td>
</tr>
<tr>
<td>5</td>
<td>git config --global username.name Jhon</td>
<td>Config git user for the current git globally in a machine</td>
<td>setup,config, globally, user,name</td>
</tr>
<tr>
<td>6</td>
<td>git config --global username.email jd@gmail.com</td>
<td>Config git email for the current git globally in a machine</td>
<td>setup,config, globally, user,email</td>
</tr>
<tr>
<td>7</td>
<td style="font-size: 13px;">git remote add origin https://github.com/arif98741/gitcom</td>
<td>Config remote connection for uploading files and data to the repository(such as github, gitlab,
bitbucket, sourceforge)
</td>
<td>setup,origin,remote,server,repo</td>
</tr>
<tr>
<td>8</td>
<td>git -v</td>
<td>Current installed git version</td>
<td>git,version,show</td>
</tr>
<tr>
<td>9</td>
<td>git add file.txt</td>
<td>Add specific file for commit</td>
<td>add, fixed, specific, custom file</td>
</tr>
<tr>
<td>10</td>
<td>git add .</td>
<td>Add all changed file for commit</td>
<td>add, all, every file, changed</td>
</tr>
<tr>
<td>11</td>
<td>git commit -m "commit message"</td>
<td>Commit Changes with messages and information</td>
<td>commit, change, -m</td>
</tr>
<tr>
<td>12</td>
<td id="gitbranch">git branch</td>
<td>See all local branch list</td>
<td>branch, list, local</td>
</tr>
<tr>
<td>13</td>
<td id="gitbranch">git branch -a</td>
<td>See all local and remote branch</td>
<td>branch,remote, list,all, local</td>
</tr>
<td>14</td>
<td id="gitbranch">git branch -r</td>
<td>See all remote branch list</td>
<td>remote,all, list,branch</td>
</tr>
<tr>
<td>15</td>
<td title="">git branch branch_name</td>
<td>Create new branch locally</td>
<td>branch, change, make, create</td>
</tr>
<tr>
<td>16</td>
<td>git checkout -b branch_name</td>
<td>Create new branch and move to there</td>
<td>create, move, branch, checkout</td>
</tr>
<tr>
<td>17</td>
<td title="">
git checkout -b branch_name <br>or<br>
git push origin branch_name
</td>
<td>Create new branch locally and push it to origin</td>
<td>branch, change, make, create</td>
</tr>
<tr>
<td>18</td>
<td title="for migrating to any branch use git checkout branch_name">git checkout dev</td>
<td title="here dev is a custom branch for example purpose">Migrate from any branch to dev</td>
<td>create, move, branch, checkout</td>
</tr>
<tr>
<td>19</td>
<td title="for migrating to any branch use git checkout branch_name">git branch -D branch_name</td>
<td title="here dev is a custom branch for example purpose">Delete local branch</td>
<td>delete, local, branch, repo</td>
</tr>
<tr>
<td>20</td>
<td title="for migrating to any branch use git checkout branch_name">git push --delete origin
branch_name
</td>
<td title="here dev is a custom branch for example purpose">Delete branch from remote</td>
<td>delete, origin, branch, checkout</td>
</tr>
<tr>
<td>21</td>
<td title="">git push</td>
<td>Push current changed commits to current branch where you are</td>
<td>push, commit, master</td>
</tr>
<tr>
<td>22</td>
<td title="">git push -u origin master</td>
<td>Push current changed commits to master branch</td>
<td>push, commit, change,master</td>
</tr>
<tr>
<td>23</td>
<td title="">git push -u origin branch_name</td>
<td>Push current changed commits to specific branch</td>
<td>specific,fixpush,branch,commit, change,master</td>
</tr>
<tr>
<td>24</td>
<td title="">git log</td>
<td>show all commits with details</td>
<td>git,log, change, commit,all</td>
</tr>
<tr>
<td>25</td>
<td title="" id="gitlog">git log --oneline</td>
<td>show all commits with summary</td>
<td>log,change,commit,summary</td>
</tr>
<tr>
<td>26</td>
<td title="">git rev-list --all</td>
<td>show all commits with commit long id</td>
<td>git,log, change, commit,all</td>
</tr>
<tr>
<td>27</td>
<td title="">git rev-list --all --count</td>
<td>Show number of commits</td>
<td>count, number, how many, log</td>
</tr>
<tr>
<td>28</td>
<td title="">git shortlog</td>
<td>Show number of commits with summary</td>
<td>log,number,commit,list</td>
</tr>
<tr>
<td>29</td>
<td title="">git shortlog -s</td>
<td>Show number of commits per user</td>
<td>user,commit,change,log,list,count,number</td>
</tr>
<tr>
<td>30</td>
<td id="gittag">git pull</td>
<td>update local branch by fetching data from remote origin</td>
<td>pull, update,remote ,origin</td>
</tr>
<tr>
<td>31</td>
<td>git tag</td>
<td>Show all local tag list</td>
<td>tag, list, all, tags</td>
</tr>
<tr>
<td>32</td>
<td>git ls-remote --tags origin</td>
<td>Show all remote tag list</td>
<td>tag, list,remote, origin, all, tags</td>
</tr>
<tr>
<td>33</td>
<td>git tag tag_name</td>
<td>Create a new tag locally</td>
<td>tag, create, new, local</td>
</tr>
<tr id="push">
<td>34</td>
<td>git checkout tags/tagname</td>
<td>Checkout to new tag</td>
<td>tag, checkout, new,</td>
</tr>
<tr>
<td>35</td>
<td>git tag tag_name -a<br>or<br>git push origin --tags</td>
<td>Create a local tag and upload to origin</td>
<td>origin, tag, remote</td>
</tr>
<tr>
<td>36</td>
<td>git push --tags</td>
<td>Push all tags to the remote</td>
<td>push, tag, all, --tags</td>
</tr>
<tr id="push">
<td>37</td>
<td>git tag tag_name -a</td>
<td>Create a new tag with nesscessary description</td>
<td>-a, tag,create, make</td>
</tr>
<tr>
<td>38</td>
<td>git tag -d tag_name</td>
<td>Delete local tag</td>
<td>tag,delete,clear, local</td>
</tr>
<tr>
<td>39</td>
<td style="font-size: 13px;">git push origin :tagname<br>or<br>git push --delete origin tagname <br>or
<br> git push origin :refs/tags/tagname
</td>
<td>Delete remote tag</td>
<td>tag, delete, push, origin</td>
</tr>
<tr>
<td>40</td>
<td>git fetch --tags</td>
<td>Fetch and update local tags from remote origin</td>
<td>tag,fetch,remote,origin</td>
</tr>
<tr>
<td>41</td>
<td>git merge feature</td>
<td>Merge master branch with feature sub brach</td>
<td>master,rebase, feature,sub, child</td>
</tr>
<tr>
<td>42</td>
<td>git rebase feature</td>
<td>Rebase feature branch with master branch</td>
<td>rebase, feature, master, merge, change</td>
</tr>
<tr>
<td>43</td>
<td>git push -u --all</td>
<td>Push Branch on Remote</td>
<td>push, branch, remote</td>
</tr>
<tr>
<td>44</td>
<td>git reset</td>
<td>Unstage All Added Before Commit Done</td>
<td>stage, unstage, git, commit</td>
</tr>
<tr>
<td>45</td>
<td>git reset --hard HEAD</td>
<td>Delete last commit and return to code</td>
<td>code, last, commit, code</td>
</tr>
<tr>
<td>46</td>
<td>git reset --soft HEAD</td>
<td>Delete commit and save changes</td>
<td>code, last, commit, change</td>
</tr>
<tr id="bottom">
<td>47</td>
<td>git rm --cached filename</td>
<td>Remove specific file from git cache</td>
<td>cache, remove, git, fixed,file</td>
</tr>
<tr>
<td>48</td>
<td>git rm -r --cached .</td>
<td>Remove all files from git cache</td>
<td>cache,all,remove,files</td>
</tr>
<tr>
<td>49</td>
<td>git reset --hard HEAD~1</td>
<td>Remove last commit from local</td>
<td>Remove last commit</td>
</tr>
<tr>
<td>50</td>
<td>git push -f origin master</td>
<td>Push change to remote</td>
<td>Push to remove</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Footer -->
<footer class="footer text-center">
<div class="container">
<div class="row">
<div class="col-md-4 mb-5 mb-lg-0">
<h4 class="text-uppercase mb-4">About</h4>
<img src="https://avatars1.githubusercontent.com/u/17213478?s=460&v=4" class="img rounded-circle"
alt="arif98741" width="30%">
<p class="lead mb-0">Ariful Islam
<br>Dhaka, Bangladesh</p>
<br><a href="https://arif98741.github.io/profile/" class="btn btn-primary btn-block" target="_blank">Visit</a>
<br><a href="https://programmingmindset.com" class="btn btn-primary btn-block" target="_blank">Website</a>
</p>
</div>
<div class="col-md-4 mb-5 mb-lg-0">
<h4 class="text-uppercase mb-4">Important Links</h4>
<ul class="list-inline mb-0">
<li class="list-inline-item">
<a class="btn btn-outline-light btn-social text-center rounded-circle"
href="https://www.facebook.com/arifulislammmc007" target="_blank">
<i class="fa fa-fw fa-facebook"></i>
</a>
</li>
<li class="list-inline-item">
<a class="btn btn-outline-light btn-social text-center rounded-circle"
href="https://www.twitter.com/arif98741" target="_blank">
<i class="fa fa-fw fa-twitter"></i>
</a>
</li>
<li class="list-inline-item">
<a class="btn btn-outline-light btn-social text-center rounded-circle"
href="https://github.com/arif98741" target="_blank">
<i class="fa fa-fw fa-github"></i>
</a>
</li>
<li class="list-inline-item">
<a class="btn btn-outline-light btn-social text-center rounded-circle"
href="https://www.youtube.com/watch?v=RhJyxlRfRNU&list=PLdVmmr7iy54B20wx9JId8yFY8iQFbsCfz"
target="_blank">
<i class="fa fa-fw fa-youtube"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-4">
<h4 class="text-uppercase mb-4">Documentation</h4>
<p class="lead mb-0">Gitcom is free and open source git commands list site that is open source and run
under MIT license. Read more .......
<a href="#">GIT COMMANDS</a>.</p>
</div>
</div>
</div>
</footer>
<div class="copyright py-4 text-center text-white">
<div class="container">
<small>This Project is Under MIT License. </small>
<small>You are free to use, modify or distribute. </small><br>
<small>Last Update 4.15am, 16-04-2019.</small>
<small>Current Latest Version <strong>v1.1.2</strong></small>
</div>
</div>
<!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->
<div class="scroll-to-top d-lg-none position-fixed ">
<a class="js-scroll-trigger d-block text-center text-white rounded" href="#page-top">
<i class="fa fa-chevron-up"></i>
</a>
</div>
<!-- Portfolio Modals -->
<!-- Portfolio Modal 5 -->
<!-- Bootstrap core JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.js"></script>
<!-- Contact Form JavaScript -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
<!-- Custom scripts for this template -->
<script src="js/freelancer.min.js"></script>
<script>
$(document).ready(function () {
$('#gittable').DataTable({
'lengthChange': true,
'paging': true,
'ordering': true,
'info': true,
'autoWidth': false,
'pageLength': 100
});
$("input[type=search]").attr('placeholder', 'Search git command here...');
});
</script>
<script>
setTimeout(function () {
$('#welcomemessage').slideDown(800);
}, 600);
function digi() {
var date = new Date(),
hour = date.getHours(),
minute = checkTime(date.getMinutes()),
ss = checkTime(date.getSeconds());
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
if (hour > 12) {
hour = hour - 12;
if (hour == 12) {
hour = checkTime(hour);
document.getElementById("tt").innerHTML = hour + ":" + minute + ":" + ss + " AM";
} else {
hour = checkTime(hour);
document.getElementById("tt").innerHTML = hour + ":" + minute + ":" + ss + " PM";
}
} else {
document.getElementById("tt").innerHTML = hour + ":" + minute + ":" + ss + " AM";
;
}
var time = setTimeout(digi, 1000);
}
</script>
</body>
</html>