-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
936 lines (931 loc) · 50.7 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
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>git-It!</title>
<link rel="stylesheet" href="style.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link rel="icon" href="picture/favicon.ico" type="image/icon" sizes="16x16">
</head>
<body>
<header class="shadow-lg"><a href="https://git-scm.com"><i class="fa fa-git-square" aria-hidden="true" style="color: orangered;"></i></a>-it!</header>
<div class="jumbotron jumbotron-fluid bg-dark">
<div class="jumbotron-background">
<img src="picture/bg.jpg" class="blur">
</div>
<div class="container text-white">
<h1 class="display-4">Git, what?</h1>
<p class="lead">Well technically, Git is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity,and support for distributed, non-linear workflows.<br>
Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development.
</p>
<a class="btn btn-secondary btn-lg" href="https://git-scm.com/downloads" role="button" id="but2"><i class="fa fa-chevron-circle-down" aria-hidden="true" id="fa"></i> Download Git</a>
<hr class="my-4">
<p style="font-size: 18px;">Let's understand it in more convienent way!</p>
</div>
</div>
<div class="container mt-5 mb-6">
<div class="cardh">
<div class="card-body">
Let's Understand it with a plot
</div>
</div>
</div>
<div class="container">
<div class="card3 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_web_search_eetr.svg" class="card-img" alt="SRC">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">You Searched</h5>
<div class="line"></div>
<p class="card-text3">Suppose, You googled something very important topic regarding your work. And you came across a perfect set of content,
But mistakenly you haven't saved it at that point time and moved on to another task.</p>
</div>
</div>
</div>
</div>
<div class="card3 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_searching_p5ux.svg" class="card-img" alt="QST">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">You Forgot</h5>
<div class="line"></div>
<p class="card-text3">After a while, you are trying to remember what content was that you have found on the internet previously?
But now you forgot it completely.</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_task_31wc.svg" class="card-img" alt="HT">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Hit the browser history</h5>
<div class="line"></div>
<p class="card-text3">Fortunately, every browser has a feature of browsing history.
So, having that in mind as you hit the browser history section to find out the piece of content.</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_select_option_y75i.svg" class="card-img" alt="OPT">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Choose the option</h5>
<div class="line"></div>
<p class="card-text3">Browser history shows you all the searches and activities that you have done till that point of time.
Now from that plethora of options you have to filter out the right option that you want to go with.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_done_a34v.svg" class="card-img" alt="GTI">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Got it</h5>
<div class="line"></div>
<p class="card-text3">After filtering out the options from the browser history you got the content that you are looking for!</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/undraw_completed_ngx6.svg" class="card-img" alt="CNL">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Conclusion!</h5>
<div class="line"></div>
<p class="card-text3">In simple language we can say that just like browser history, Git tracks your source code what changes have you done so far, it is kind of a source code history feature. You can find it any changes, whether it is big or small
And you can go back and forth to any changes that you have stored in git.
</p>
</div>
</div>
</div>
</div>
</div>
<!-- -->
<div class="container mt-5">
<div class="cardh">
<div class="card-body">
Stages In Git
</div>
</div>
<div class="bs-example">
<div class="container-fluid mt-5">
<div class="row">
<div class="card-deck">
<div class="card">
<img src="picture/undraw_winter_designer_a2m7.svg" class="card-img-top" alt="WD">
<div class="card-body0">
<h5 class="card-title0">1.Working Directory</h5>
<div class="line mx-auto"></div>
<p class="card-text0">The working directory is simple, your current directory on your system
that you are working on.</p>
</div>
</div>
<div class="card">
<img src="picture/undraw_to_do_list_a49b.svg" class="card-img-top" alt="SA">
<div class="card-body0">
<h5 class="card-title0">2.Staging area</h5>
<div class="line mx-auto"></div>
<p class="card-text0">The staging area is acting as a bridge between your working directory & local repository,
In staging area new files (a.k.a. untracked-files) are added so that these new files further add-up to local repository through commit.
</p>
</div>
</div>
<div class="card">
<img src="picture/undraw_online_organizer_ofxm.svg" class="card-img-top" alt="LR">
<div class="card-body0">
<h5 class="card-title0">3.Local Repository</h5>
<div class="line mx-auto"></div>
<p class="card-text0">Local repository is your working directory in your local machine or personal computer.
Where you make changes locally and that is tracked by the git.</p>
</div>
</div>
<div class="card">
<img src="picture/undraw_going_up_ttm5.svg" class="card-img-top" alt="RR">
<div class="card-body0">
<h5 class="card-title0">4.Remote Repository</h5>
<div class="line mx-auto"></div>
<p class="card-text0">A remote repository is a git repository hosted on the Internet or some other network,
it is a common repository that all team members use to exchange their changes in the source-code development.
It is just cloud storage.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5 mb-6">
<div class="cardh">
<div class="card-body">
Git Operations
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/1-Repo-w.jpg" class="card-img" alt="INIT">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Initialize</h5>
<div class="line"></div>
<p class="card-text3">Initialize operation is used to initialize or to create a git repository.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/2-AddRp-w.jpg" class="card-img" alt="ADD">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Add</h5>
<div class="line"></div>
<p class="card-text3">This operation adds a change in the working directory to the staging area.
Basically, it tells git that you have to include the updates to a particular file for the next commit.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/3-Commit-w.jpg" class="card-img" alt="CMT">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Commit</h5>
<div class="line"></div>
<p class="card-text3">This operation captures the snapshot of the working directory.
So, that it can compare the changes in future commits (Master branch is always headed to last commit).
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/4-Pull-w.jpg" class="card-img" alt="PULL">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Pull</h5>
<div class="line"></div>
<p class="card-text3">This operation is used to fetch and download content from a remote repository
and immediately update the local repository to match that content.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/5-Push-w.jpg" class="card-img" alt="PUSH">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Push</h5>
<div class="line"></div>
<p class="card-text3">This operation is used to upload local repository content to a remote repository.
It is opposite of pull Operation.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/6-Branch-w.jpg" class="card-img" alt="BRCH">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Branch</h5>
<div class="line"></div>
<p class="card-text3">This operation creates a branch for independent line of development.
You can think of them as a way to request a brand new working directory, staging area,
And project history for parallels contribution and development (Default branch in git is master branch).</p>
</p>
</div>
</div>
</div>
</div>
<!-- -->
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/7-Merge-w.jpg" class="card-img" alt="MRG">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Merge</h5>
<div class="line"></div>
<p class="card-text3">This operation lets you take the independent lines of development
created by git branch and integrate them into a single branch i.e. to master branch.
</p>
</div>
</div>
</div>
</div>
<div class="card33 mb-3" style="max-width: 980px; margin-left: 2rem;">
<div class="row no-gutters">
<div class="col-md-4">
<img src="picture/8-Rebase-w.jpg" class="card-img" alt="RBS">
</div>
<div class="col-md-8">
<div class="card-body3">
<h5 class="card-title3">Rebase</h5>
<div class="line"></div>
<p class="card-text3">This is also a way of combining the work between different branches.
Rebasing takes a set of commits, copies them and stores them outside your repository.
The advantage of rebasing is that it can be used to make a linear sequence of commits.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-5 mb-6">
<div class="cardh">
<div class="card-body">
Illustration Of Git's Working Flow
</div>
</div>
</div>
<div class="container mt-3">
<img src="picture/gitill1.jpg" class="img-fluid" alt="Responsive image">
</div>
<!-- -->
<div class="container mt-5">
<div class="cardh">
<div class="card-body">
Few Basic Git commands
</div>
</div>
</div>
<div class="container" id="tl">
<div class="timeline">
<ul>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter1" id="bod">
<h1>Configure the author name and email address to be used with your commits</h1>
<code style="color: purple;">$ git config --global user.name "YourUser_Name"</code><br>
<code style="color: purple;">$ git config --global user.email your@email.com</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter2" id="bod">
<h1>Create a new local repository</h1>
<code style="color: lawngreen;">$ git init</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter3" id="bod">
<h1>Add files</h1>
<code style="color: red;">$ git add filename </code><br>
<code style="color: red;">$ git add * [to add all file]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter19" id="bod">
<h1>Deletes files</h1>
<code style="color: goldenrod;">$ git rm [filename] </code><br>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter4" id="bod">
<h1>Commit changes to head</h1>
<code style="color: blue;">$ git commit -m "Commit message"</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter5" id="bod">
<h1>Status</h1>
<code style="color: orangered;">$ git status</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter23" id="bod">
<h1>Unstage a file</h1>
<code style="color: rosybrown;">$ git reset [file]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter24" id="bod">
<h1>Undo all the commits</h1>
<code style="color: powderblue;">$ git reset [commit]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter18" id="bod">
<h1>List the version history</h1>
<code style="color: tomato">$ git log</code><br>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter6" id="bod">
<h1>Connect to a remote repository</h1>
<code style="color: palevioletred;">$ git remote add origin [server]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter21" id="bod">
<h1>Push</h1>
<code style="color: peru;">$ git push origin master</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter8" id="bod">
<h1>Create a new branch and switch to it</h1>
<code style="color: yellowgreen;">$ git branch</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter9" id="bod">
<h1>Switch from one branch to another</h1>
<code style="color: lightcoral">$ git checkout [branchname]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter10" id="bod">
<h1>List all the branches in your repo, and also tell you what branch you're currently in</h1>
<code style="color: lightgreen">$ git checkout -b [branchname]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter11" id="bod">
<h1>Delete the feature branch</h1>
<code style="color: plum">$ git branch -d [branchname]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter26" id="bod">
<h1>Delete a branch on remote repository.</h1>
<code style="color: firebrick">$ git push origin :[branch name]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter12" id="bod">
<h1>Push the branch to your remote repository,so others can use it</h1>
<code style="color: cornflowerblue">$ git push origin [branchname]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter22" id="bod">
<h1>Pushe all branches to remote repository</h1>
<code style="color: tan">$ git push –all [variable name]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter20" id="bod">
<h1>Clone Repository</h1>
<code style="color: rosybrown;">$ git clone [URL]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter15" id="bod">
<h1>Fetch and merge changes on the remote server to your working directory</h1>
<code style="color: yellow">$ git pull</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter16" id="bod">
<h1>To merge a different branch into your active branch</h1>
<code style="color: crimson">$ git merge [branchname]</code>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter17" id="bod">
<h1>View file differences</h1>
<code style="color:teal">$ git diff</code><br>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
<li>
<div class="time-line" type="button" data-toggle="modal" data-target="#exampleModalCenter25" id="bod">
<h1>To rebase master branch</h1>
<code style="color: chocolate">$ git rebase master</code><br>
<div class="reveal p-2">
click to know more!
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="container"><h3 style="text-align: center; color: black;"><strong>No need to rember all these commands, Just get the cheat sheet!</strong></h23></div>
<div class="line mx-auto mt-1"></div>
<div class="container mb-2">
<a href="picture/git-cheat-sheet.jpg" download="Git Cheat Sheet" type="button" class="btn btn-lg btn-block mb-5 mt-3" id="but"><i class="fa fa-chevron-circle-down" aria-hidden="true" id="fa"></i> Download Git Cheat Sheet</a>
</div>
<div class="modal fade" id="exampleModalCenter1" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: purple;">
<h5 class="modal-title" id="exampleModalLongTitle">Git Configure</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command sets the author name and email address respectively to be used with your commits.
<img src="picture/config.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter2" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: lawngreen">
<h5 class="modal-title" id="exampleModalLongTitle">git init</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command is used to start a new repository.
<img src="picture/init.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter3" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: red;">
<h5 class="modal-title" id="exampleModalLongTitle">git add</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command adds one or more files to the staging area.
<img src="picture/add file.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter4" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: rgb(50, 50, 245);">
<h5 class="modal-title" id="exampleModalLongTitle">git commit</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command records or snapshots the file permanently in the version history.
<img src="picture/commit.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter5" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: orangered;">
<h5 class="modal-title" id="exampleModalLongTitle">git status</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command lists all the files that have to be committed.
<img src="picture/status.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter6" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: pink;">
<h5 class="modal-title" id="exampleModalLongTitle">git remote add origin [server]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command is used to connect your local repository to the remote server.
<img src="picture/push.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter7" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: peru;">
<h5 class="modal-title" id="exampleModalLongTitle">git push origin master</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command sends the committed changes of master branch to your remote repository.
<img src="picture/push.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter8" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: yellowgreen;">
<h5 class="modal-title" id="exampleModalLongTitle"> git branch</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command creates a new branch and also switches to it.
<img src="picture/branch.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter9" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: lightcoral;">
<h5 class="modal-title" id="exampleModalLongTitle">git checkout [branchname]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command is used to switch from one branch to another.
<img src="picture/checkout.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter10" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: lightgreen;">
<h5 class="modal-title" id="exampleModalLongTitle">git checkout -b [branchname]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command lists all the local branches in the current repository.
<img src="picture/-b.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter11" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: plum;">
<h5 class="modal-title" id="exampleModalLongTitle">git branch -d [branchname]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command deletes the feature branch.
<img src="picture/-d.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter12" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: cornflowerblue;">
<h5 class="modal-title" id="exampleModalLongTitle">git push origin [branch name]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command sends the branch commits to your remote repository.
<img src="picture/push-origin.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter15" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: rgb(240, 240, 83) ;">
<h5 class="modal-title" id="exampleModalLongTitle">git pull [Repository Link]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×
</button>
</div>
<div class="modal-body">
> This command fetches and merges changes on the remote server to your working directory.
<img src="picture/pull.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter16" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: crimson;">
<h5 class="modal-title" id="exampleModalLongTitle">git merge [branchname]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command merges the specified branch’s history into the current branch.
<img src="picture/merge-branch.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter17" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: teal;">
<h5 class="modal-title" id="exampleModalLongTitle">git diff [first branch] [second branch]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command shows the differences between the two branches mentioned.
<img src="picture/diff.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter18" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: tomato;">
<h5 class="modal-title" id="exampleModalLongTitle">git log</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command shows the differences between the two branches mentioned.
<img src="picture/log.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter19" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: goldenrod;">
<h5 class="modal-title" id="exampleModalLongTitle">git remove</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command shows the differences between the two branches mentioned.
<img src="picture/rm.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter20" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: rosybrown;">
<h5 class="modal-title" id="exampleModalLongTitle">git clone</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command shows the differences between the two branches mentioned.
<img src="picture/clone.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter21" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: peru;">
<h5 class="modal-title" id="exampleModalLongTitle">git push origin master</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command sends the committed changes of master branch to your remote repository.
<img src="picture/push-origin.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter22" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: tan;">
<h5 class="modal-title" id="exampleModalLongTitle">git push –all [variable name]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command pushes all branches to your remote repository.
<img src="picture/push--all.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter23" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: rosybrown;">
<h5 class="modal-title" id="exampleModalLongTitle">git reset [file]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command unstages the file for the commit, but it preserves the file contents.
<img src="picture/reset-main.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter24" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: powderblue;">
<h5 class="modal-title" id="exampleModalLongTitle">git reset [commit]</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command undoes all the commits after the specified commit and preserves the changes locally.
<img src="picture/reset-commit.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter25" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: chocolate;">
<h5 class="modal-title" id="exampleModalLongTitle">git rebase master</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
> This command will move all our work from current branch to the master.
<img src="picture/rebase.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="modal fade" id="exampleModalCenter26" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header shadow-sm p-3 mb-1" style="background-color: firebrick;">
<h5 class="modal-title" id="exampleModalLongTitle">git push origin: branch_3</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">×
</button>
</div>
<div class="modal-body">
>This command deletes a particular branch on your remote repository.
<img src="picture/origin-br.png" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<a class="up" href="#"><i class="fa fa-angle-double-up" aria-hidden="true"></i></a>
<script src="main.js"></script>
<footer>
<p class="foot">Made With <i class="fa fa-heart" aria-hidden="true" style="color: red;"></i> By <a href="https://github.com/kriyptor" data-placement="top" data-toggle="popover" data-trigger="hover" data-content="Click to join me">Shivanhu kashyap</a></p>
</footer>
</body>
</html>