0% found this document useful (0 votes)
15 views

Git

GIT Notes

Uploaded by

NILESH RANJAN
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Git

GIT Notes

Uploaded by

NILESH RANJAN
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

PS C:\Users\91893\Downloads\IND_PROJECT> git init

Reinitialized existing Git repository in C:/Users/91893/Downloads/IND_PROJECT/.git/


PS C:\Users\91893\Downloads\IND_PROJECT> git add --all
>>
PS C:\Users\91893\Downloads\IND_PROJECT> git add .
PS C:\Users\91893\Downloads\IND_PROJECT> git add --all
>>
PS C:\Users\91893\Downloads\IND_PROJECT> git add --all
>>
PS C:\Users\91893\Downloads\IND_PROJECT> git commit -m
error: switch `m' requires a value
PS C:\Users\91893\Downloads\IND_PROJECT> git commit -m "Initial commit"
>>
[main 70c7b39] Initial commit
16 files changed, 17 insertions(+), 50 deletions(-)
rename Industrial_Project/{ => css}/style.css (100%)
rename Industrial_Project/{ => css}/style1.css (100%)
rename Industrial_Project/{ => css}/style2.css (97%)
delete mode 100644 Industrial_Project/img/a1.png
delete mode 100644 Industrial_Project/img/icon.png
delete mode 100644 Industrial_Project/img/img1.jpg
delete mode 100644 Industrial_Project/img/img2.jpg
delete mode 100644 Industrial_Project/img/img3.jpg
delete mode 100644 Industrial_Project/img/img4.jpg
rename Industrial_Project/{ => js}/script1.js (99%)
>> git init
>> git branch -M main
>> git remote add origin https://github.com/NILESH-2003/6th_Sem_Project.git
>> git push -u origin main
Reinitialized existing Git repository in C:/Users/91893/Downloads/IND_PROJECT/.git/
[main 4538472] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md
error: remote origin already exists.
remote: Repository not found.
fatal: repository 'https://github.com/NILESH-2003/6th_Semester_Project.git/' not
found
PS C:\Users\91893\Downloads\IND_PROJECT> echo "# 6th_Sem_Project" >> README.md
PS C:\Users\91893\Downloads\IND_PROJECT> echo "# 6th_Sem_Project" >> README.md
PS C:\Users\91893\Downloads\IND_PROJECT> git init
Reinitialized existing Git repository in C:/Users/91893/Downloads/IND_PROJECT/.git/
PS C:\Users\91893\Downloads\IND_PROJECT> git add README.md
PS C:\Users\91893\Downloads\IND_PROJECT> git commit -m "first commit"
On branch main
Your branch and 'origin/main' have diverged,
and have 3 and 2 different commits each, respectively.
PS C:\Users\91893\Downloads\IND_PROJECT> git init
Reinitialized existing Git repository in C:/Users/91893/Downloads/IND_PROJECT/.git/
PS C:\Users\91893\Downloads\IND_PROJECT> git commit -am "first commit"
2 files changed, 1 insertion(+), 1 deletion(-)
delete mode 100644 README.md
PS C:\Users\91893\Downloads\IND_PROJECT> git remote add origin
https://github.com/NILESH-2003/6th_Sem_Project.git
error: remote origin already exists.
PS C:\Users\91893\Downloads\IND_PROJECT> git remote set-url origin
https://github.com/NILESH-2003/6th_Sem_Project.git
>>
PS C:\Users\91893\Downloads\IND_PROJECT> git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/NILESH-
2003/6th_Sem_Project.git'
PS C:\Users\91893\Downloads\IND_PROJECT> git branch
>>
* main
PS C:\Users\91893\Downloads\IND_PROJECT> git checkout -b master
>>
Switched to a new branch 'master'
PS C:\Users\91893\Downloads\IND_PROJECT> git push origin master
Enumerating objects: 55, done.
Counting objects: 100% (55/55), done.
Delta compression using up to 4 threads
Compressing objects: 100% (51/51), done.
Writing objects: 100% (55/55), 7.25 MiB | 2.55 MiB/s, done.
Total 55 (delta 10), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (10/10), done.
To https://github.com/NILESH-2003/6th_Sem_Project.git
* [new branch] master -> master
PS C:\Users\91893\Downloads\IND_PROJECT>

You might also like