-
Notifications
You must be signed in to change notification settings - Fork 0
/
Git Command Live.txt
1058 lines (833 loc) · 33.6 KB
/
Git Command Live.txt
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
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
My name is Om
Git Hub Tutorial - UDEMY
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo
$ git remote add origin https://github.com/TechnoMage21/test_repo.git
fatal: not a git repository (or any of the parent directories): .git
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo
$ git init
Initialized empty Git repository in C:/Users/user/OneDrive/Desktop/Test_Repo/.git/
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add README.md
fatal: pathspec 'README.md' did not match any files
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote add origin https://github.com/TechnoMage21/test_repo.git
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git --version
git version 2.47.1.windows.1
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
nothing to commit (create/copy files and use "git add" to track)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
origin https://github.com/TechnoMage21/test_repo.git (fetch)
origin https://github.com/TechnoMage21/test_repo.git (push)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote remove origin
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote add myorigin https://github.com/TechnoMage21/test_repo.git
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
myorigin https://github.com/TechnoMage21/test_repo.git (fetch)
myorigin https://github.com/TechnoMage21/test_repo.git (push)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
Om.txt
nothing added to commit but untracked files present (use "git add" to tr
ack)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add --all
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add.
git: 'add.' is not a git command. See 'git --help'.
The most similar command is
add
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add .
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git rm --chached Om.txt
error: unknown option `chached'
usage: git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch]
[--quiet] [--pathspec-from-file=<file> [--pathspec-file-nu
l]]
[--] [<pathspec>...]
-n, --[no-]dry-run dry run
-q, --[no-]quiet do not list removed files
--[no-]cached only remove from the index
-f, --[no-]force override the up-to-date check
-r allow recursive removal
--[no-]ignore-unmatch exit with a zero status even if nothing matche
d
--[no-]sparse allow updating entries outside of the sparse-c
heckout cone
--[no-]pathspec-from-file <file>
read pathspec from file
--[no-]pathspec-file-nul
with --pathspec-from-file, pathspec elements a
re separated with NUL character
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git rm --cached Om.txt
rm 'Om.txt'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
Om.txt
nothing added to commit but untracked files present (use "git add" to tr
ack)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add --all
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitgnore
New Text Document.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore1
Suvam.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore.txt
Suvam.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
New Text Document.txt
Suvam.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
New Text Document.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add .gitignore
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Om.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
New Text Document.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Om.txt
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitignore
Untracked files:
(use "git add <file>..." to include in what will be committed)
Ram.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Om.txt
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitignore
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add .gitignore
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git config --global user.name "TechnoMage21"
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git config --global user.email "guptaom782@gmail.com"
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git commit -m "Initail Commit"
[main (root-commit) 391d6d0] Initail Commit
2 files changed, 3 insertions(+)
create mode 100644 .gitignore
create mode 100644 Om.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git log
commit 391d6d06baa4b24c1d07c063d52249f818c63dd9 (HEAD -> main)
Author: TechnoMage21 <guptaom782@gmail.com>
Date: Mon Dec 2 16:14:19 2024 +0530
Initail Commit
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git log
commit 391d6d06baa4b24c1d07c063d52249f818c63dd9 (HEAD -> main)
Author: TechnoMage21 <guptaom782@gmail.com>
Date: Mon Dec 2 16:14:19 2024 +0530
Initail Commit
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
myorigin https://github.com/TechnoMage21/test_repo.git (fetch)
myorigin https://github.com/TechnoMage21/test_repo.git (push)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/TechnoMage21/test
_repo.git'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin master^C
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream myorigin main
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
info: please complete authentication in your browser...
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 286 bytes | 143.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/TechnoMage21/test_repo.git
* [new branch] main -> main
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ ^C
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ ssh-keygen -t rsa -c "guptaom782@gmail.com"
Too many arguments.
usage: ssh-keygen [-q] [-a rounds] [-b bits] [-C comment] [-f output_keyfile]
[-m format] [-N new_passphrase] [-O option]
[-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa]
[-w provider] [-Z cipher]
ssh-keygen -p [-a rounds] [-f keyfile] [-m format] [-N new_passphrase]
[-P old_passphrase] [-Z cipher]
ssh-keygen -i [-f input_keyfile] [-m key_format]
ssh-keygen -e [-f input_keyfile] [-m key_format]
ssh-keygen -y [-f input_keyfile]
ssh-keygen -c [-a rounds] [-C comment] [-f keyfile] [-P passphrase]
ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]
ssh-keygen -B [-f input_keyfile]
ssh-keygen -D pkcs11
ssh-keygen -F hostname [-lv] [-f known_hosts_file]
ssh-keygen -H [-f known_hosts_file]
ssh-keygen -K [-a rounds] [-w provider]
ssh-keygen -R hostname [-f known_hosts_file]
ssh-keygen -r hostname [-g] [-f input_keyfile]
ssh-keygen -M generate [-O option] output_file
ssh-keygen -M screen [-f input_file] [-O option] output_file
ssh-keygen -I certificate_identity -s ca_key [-hU] [-D pkcs11_provider]
[-n principals] [-O option] [-V validity_interval]
[-z serial_number] file ...
ssh-keygen -L [-f input_keyfile]
ssh-keygen -A [-a rounds] [-f prefix_path]
ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number]
file ...
ssh-keygen -Q [-l] -f krl_file [file ...]
ssh-keygen -Y find-principals -s signature_file -f allowed_signers_file
ssh-keygen -Y match-principals -I signer_identity -f allowed_signers_file
ssh-keygen -Y check-novalidate -n namespace -s signature_file
ssh-keygen -Y sign -f key_file -n namespace file [-O option] ...
ssh-keygen -Y verify -f allowed_signers_file -I signer_identity
-n namespace -s signature_file [-r krl_file] [-O option]
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ ssh-keygen -t rsa -C "guptaom782@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/user/.ssh/id_rsa):
Created directory '/c/Users/user/.ssh'.
Enter passphrase for "/c/Users/user/.ssh/id_rsa" (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/user/.ssh/id_rsa
Your public key has been saved in /c/Users/user/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:rzC0Us37dd1CFYYFNYQLwfq/Plqy1QagBPvLdwKAh3w guptaom782@gmail.com
The key's randomart image is:
+---[RSA 3072]----+
| . ....BB |
| . o o o o. o|
| + E .... . .|
| oo+.. .. . |
| o S+. .. |
| o ..oo. .o..|
| . + .o.+o+ooo|
| . o o..B+.. |
| . .oooo |
+----[SHA256]-----+
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ cd .ssh
bash: cd: .ssh: No such file or directory
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ cd .ls
bash: cd: .ls: No such file or directory
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ ls
Om.txt Ram.txt Suvam.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ cd..
bash: cd..: command not found
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ cd
user@DESKTOP-IFD1UGT MINGW64 ~
$ ls
'3D Objects'/
AppData/
'Application Data'@
Contacts/
Cookies@
Documents/
Downloads/
Favorites/
IntelGraphicsProfiles/
Links/
'Local Settings'@
'My Documents'@
NTUSER.DAT
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.0.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.1.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.2.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.blf
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
NetHood@
OneDrive/
PrintHood@
Recent@
'Saved Games'/
Searches/
SendTo@
'Start Menu'@
Templates@
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
package-lock.json
package.json
user@DESKTOP-IFD1UGT MINGW64 ~
$ cd .ssh
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ clip < id_rsa.pub
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ ^C
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ ^C
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ ^C
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ ^C
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ clip < id_rsa.pub
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ cd o.git^C
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ cd /OneDrive/Desktop/Test_Repo
bash: cd: /OneDrive/Desktop/Test_Repo: No such file or directory
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ ls
id_rsa id_rsa.pub
user@DESKTOP-IFD1UGT MINGW64 ~/.ssh
$ cd
user@DESKTOP-IFD1UGT MINGW64 ~
$ cd /OneDrive/Desktop/Test_Repo
bash: cd: /OneDrive/Desktop/Test_Repo: No such file or directory
user@DESKTOP-IFD1UGT MINGW64 ~
$ ls
'3D Objects'/
AppData/
'Application Data'@
Contacts/
Cookies@
Documents/
Downloads/
Favorites/
IntelGraphicsProfiles/
Links/
'Local Settings'@
'My Documents'@
NTUSER.DAT
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.0.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.1.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.2.regtrans-ms
NTUSER.DAT{53b39e87-18c4-11ea-a811-000d3aa4692b}.TxR.blf
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
NetHood@
OneDrive/
PrintHood@
Recent@
'Saved Games'/
Searches/
SendTo@
'Start Menu'@
Templates@
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
package-lock.json
package.json
user@DESKTOP-IFD1UGT MINGW64 ~
$ cd one ^C
user@DESKTOP-IFD1UGT MINGW64 ~
$ cd OneDrive
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive
$ ls
Attachments/ Documents/ 'Personal Vault.lnk'* Videos/
Desktop/ Music/ Pictures/ desktop.ini
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive
$ cd Desktop
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop
$ ls
'Microsoft Edge.lnk'* Test_Repo/ 'Word 2013.lnk'*
OM/ 'Visual Studio Code.lnk'* desktop.ini
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop
$ cd Test_Repo
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
myorigin https://github.com/TechnoMage21/test_repo.git (fetch)
myorigin https://github.com/TechnoMage21/test_repo.git (push)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote remove myorigin
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n) y
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n) y
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n) y
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n) ^X
Sorry, I did not understand your answer. Please type 'y' or 'n'
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n)
Sorry, I did not understand your answer. Please type 'y' or 'n'
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n)
Sorry, I did not understand your answer. Please type 'y' or 'n'
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n)
Sorry, I did not understand your answer. Please type 'y' or 'n'
Deletion of directory '.git/logs/refs/remotes/myorigin' failed. Should I try again? (y/n) n
Deletion of directory '.git/refs/remotes/myorigin' failed. Should I try again? (y/n) n
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote remove myorigin
error: No such remote: 'myorigin'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote add myorigin "git@github.com:TechnoMage21/test_repo.git"
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
nothing to commit, working tree clean
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
nothing to commit, working tree clean
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitignore
Untracked files:
(use "git add <file>..." to include in what will be committed)
Ram.txt
no changes added to commit (use "git add" and/or "git commit -a")
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git add --all
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: .gitignore
new file: Ram.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git commit -m "Ram.txt file added"
[main 36b4d51] Ram.txt file added
2 files changed, 1 deletion(-)
create mode 100644 Ram.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
The authenticity of host 'github.com (20.207.73.82)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
To github.com:TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream myorigin main
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
To github.com:TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
To github.com:TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin master
error: src refspec master does not match any
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
To github.com:TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git status
On branch main
nothing to commit, working tree clean
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
To github.com:TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git branch
* main
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push myorigin main
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote remove myorigin
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git remote -v
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git branch OmBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git branch
OmBranch
* main
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git checkout OmBranch
Switched to branch 'OmBranch'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git branch
* OmBranch
main
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git checkout -b newBranch
Switched to a new branch 'newBranch'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git branch
OmBranch
main
* newBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git checkout main
Switched to branch 'main'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git branch
OmBranch
* main
newBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git checkout newBranch
Switched to branch 'newBranch'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ echo > newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git status
On branch newBranch
Untracked files:
(use "git add <file>..." to include in what will be committed)
newfile1.txt
nothing added to commit but untracked files present (use "git add" to track)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git ass newfile1.txt
git: 'ass' is not a git command. See 'git --help'.
The most similar commands are
add
askpass
lfs
stash
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git add newfile1.txt
warning: in the working copy of 'newfile1.txt', LF will be replaced by CRLF the next time Git touch
es it
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git add newfile1.txt^C
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git add ^[[200~ newfile1.txt
fatal: pathspec '?[200~' did not match any files
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git add newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git status
On branch newBranch
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git commit -m "new file1.txt added"
[newBranch d958ce6] new file1.txt added
1 file changed, 1 insertion(+)
create mode 100644 newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git push myorigin newBranch
fatal: 'myorigin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git remote add origin "https://github.com/TechnoMage21/test_repo.git"
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git push myorigin newBranch
fatal: 'myorigin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git remote -v
origin https://github.com/TechnoMage21/test_repo.git (fetch)
origin https://github.com/TechnoMage21/test_repo.git (push)
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git push origin newBranch
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (11/11), 804 bytes | 402.00 KiB/s, done.
Total 11 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (1/1), done.
remote:
remote: Create a pull request for 'newBranch' on GitHub by visiting:
remote: https://github.com/TechnoMage21/test_repo/pull/new/newBranch
remote:
To https://github.com/TechnoMage21/test_repo.git
* [new branch] newBranch -> newBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git checkout myBranch
error: pathspec 'myBranch' did not match any file(s) known to git
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git brach
git: 'brach' is not a git command. See 'git --help'.
The most similar command is
branch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git branch
OmBranch
main
* newBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (newBranch)
$ git checkout OmBranch
Switched to branch 'OmBranch'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git branch
* OmBranch
main
newBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git merge newBranch
Updating 36b4d51..d958ce6
Fast-forward
newfile1.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git status
On branch OmBranch
nothing to commit, working tree clean
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git push origin OmBranch
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote:
remote: Create a pull request for 'OmBranch' on GitHub by visiting:
remote: https://github.com/TechnoMage21/test_repo/pull/new/OmBranch
remote:
To https://github.com/TechnoMage21/test_repo.git
* [new branch] OmBranch -> OmBranch
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (OmBranch)
$ git checkout main
Switched to branch 'main'
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git merge OmBranch
Updating 36b4d51..d958ce6
Fast-forward
newfile1.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 newfile1.txt
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)
$ git push origin main
To https://github.com/TechnoMage21/test_repo.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/TechnoMage21/test_repo.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
user@DESKTOP-IFD1UGT MINGW64 ~/OneDrive/Desktop/Test_Repo (main)