-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRead Me.txt
66 lines (44 loc) · 2.18 KB
/
Read Me.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
maheshtoken
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
Mahesh Classic+++++++++++
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
git config --global user.name "agilemahesh33"
git config --global user.password "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"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
To clone and initialize new empty/files/folders repo
git clone <URL.git>
git init
To add changes to the repo All at a time:
===>open git bash where you have initialized files and follow below steps<====
git pull
git add .
git commit -m "Message" -m "Description..."
git push -u origin main
To add Single folder changes to the repo at a time:
===>open git bash where you have initialized files and follow below steps<====
git pull
git add "Excercise\MVCWithLinq3"
git commit -m "Message" -m "Description..."
git push -u origin main
===========
Edit last pushed comment
1.
git commit --amend -m "New commit message"
:The --amend flag allows you to modify the most recent commit.
:The -m flag specifies the new commit message.
2. If the commit is already pushed to a remote repository, you'll need to force-push the changes:
git push --force
3. If you want to edit the message interactively (e.g., to open a text editor):
git commit --amend
+++++++++++++++++++++++++++++++++
To Clean git / untrack the files
git clean -i // which shows options what to do about the changes
git clean -n // this shows if we run git clean then this will remove the files listed
git clean -f // will remove the untracked changes from file
Fatal Error reason may be because while adding files to staging the files are open and
needs to be closed first and then should be added.
mrmah@LAPTOP-N9LCSVV9 MINGW64 /d/Dot Net Core NIT/DotNetMVC (main)
$ git add .
error: open("Excercise/MVCTestEmptyProject3/.vs/MVCTestEmptyProject3/FileContentIndex/e7f9d8fe-69c2-4949-898d-c5515a3f8638.vsidx"): Permission denied
error: unable to index file 'Excercise/MVCTestEmptyProject3/.vs/MVCTestEmptyProject3/FileContentIndex/e7f9d8fe-69c2-4949-898d-c5515a3f8638.vsidx'
fatal: adding files failed