0% found this document useful (0 votes)
2 views9 pages

Git Commands for Project Setup

Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql

Uploaded by

Thu Phạm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views9 pages

Git Commands for Project Setup

Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql Các lệnh trong mysql

Uploaded by

Thu Phạm
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Run code

cd "C:\Users\ADMIN\Downloads\ATI Project\e-master"
npm start

Push code:
git init
git remote add origin [Link]
git add .
git commit -m "Initial commit"
git push -u origin main

Pull code:

PS C:\Users\ADMIN\Downloads\ATI Project> git init


Reinitialized existing Git repository in C:/Users/ADMIN/Downloads/ATI Project/.git/
PS C:\Users\ADMIN\Downloads\ATI Project> git add .
PS C:\Users\ADMIN\Downloads\ATI Project> git commit -m "second commit"
On branch huyen
nothing to commit, working tree clean
PS C:\Users\ADMIN\Downloads\ATI Project> git remote add origin [Link]
[Link]
error: remote origin already exists.
PS C:\Users\ADMIN\Downloads\ATI Project> git remote -v
origin [Link] (fetch)
origin [Link] (push)
PS C:\Users\ADMIN\Downloads\ATI Project> git branch -M main
PS C:\Users\ADMIN\Downloads\ATI Project> git push -u origin main
Enumerating objects: 39, done.
Counting objects: 100% (39/39), done.
Delta compression using up to 8 threads
Compressing objects: 100% (38/38), done.
Writing objects: 100% (39/39), 1.22 MiB | 761.00 KiB/s, done.
Total 39 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (3/3), done.
To [Link]
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project>
* History restored

PS C:\Users\ADMIN\Downloads\ATI Project> git init


Reinitialized existing Git repository in C:/Users/ADMIN/Downloads/ATI Project/.git/
PS C:\Users\ADMIN\Downloads\ATI Project> git add .
PS C:\Users\ADMIN\Downloads\ATI Project> git commit - "2nd commit"
error: pathspec '-' did not match any file(s) known to git
error: pathspec '2nd commit' did not match any file(s) known to git
PS C:\Users\ADMIN\Downloads\ATI Project> git commit -m "2nd commit"
[main 1ebf12c] 2nd commit
14 files changed, 619 insertions(+), 53 deletions(-)
rename [Link] => e-master/public/[Link] (71%)
create mode 100644 e-master/public/[Link]
create mode 100644 e-master/public/data/[Link]
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
rename {image => e-master/public/image}/[Link] (100%)
create mode 100644 e-master/public/[Link]
rename [Link] => e-master/public/[Link] (71%)
create mode 100644 e-master/public/[Link]
delete mode 100644 [Link]
PS C:\Users\ADMIN\Downloads\ATI Project> git remote add origin [Link]
[Link]
error: remote origin already exists.
PS C:\Users\ADMIN\Downloads\ATI Project> git push -u origin main
To [Link]
! [rejected] main -> main (fetch first)
error: failed to push some refs to '[Link]
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.
PS C:\Users\ADMIN\Downloads\ATI Project> git branch -M main
PS C:\Users\ADMIN\Downloads\ATI Project> git branch -M main
PS C:\Users\ADMIN\Downloads\ATI Project> git add .
PS C:\Users\ADMIN\Downloads\ATI Project> git pull origin main
remote: Enumerating objects: 80, done.
remote: Counting objects: 100% (80/80), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 70 (delta 17), reused 60 (delta 10), pack-reused 0 (from 0)
Unpacking objects: 100% (70/70), 1.17 MiB | 562.00 KiB/s, done.
From [Link]
* branch main -> FETCH_HEAD
53b3eb4..d4d5e1d main -> origin/main
Merge made by the 'ort' strategy.
e-master/.gitignore | 41 +-
e-master/new | 1+
e-master/[Link] | 1715 +++++++++++++++--------
e-master/[Link] | 15 +-
e-master/public/assets/images/Component [Link] | 19 +
e-master/public/assets/images/Component [Link] | 14 +
e-master/public/assets/images/[Link] | Bin 0 -> 272463 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 78007 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 21566 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 21819 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 119529 bytes
e-master/public/assets/images/[Link] | 9+
e-master/public/assets/images/[Link] | 14 +
e-master/public/assets/images/[Link] | 14 +
e-master/public/assets/images/[Link] | 9+
e-master/public/assets/images/[Link] | Bin 0 -> 217777 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 262322 bytes
e-master/public/assets/images/[Link] | Bin 0 -> 220948 bytes
e-master/public/[Link] | Bin 3870 -> 0 bytes
e-master/public/[Link] | 29 +-
e-master/public/[Link] | Bin 5347 -> 0 bytes
e-master/public/[Link] | Bin 9664 -> 0 bytes
e-master/public/[Link] | 25 -
e-master/public/[Link] | 3-
e-master/src/[Link] | 38 -
e-master/src/[Link] | 25 -
e-master/src/[Link] | 18 +
e-master/src/[Link] | 8-
e-master/src/components/[Link] | 76 +
e-master/src/components/[Link] | 36 +
e-master/src/components/[Link] | 61 +
e-master/src/components/[Link] | 45 +
e-master/src/images copy/Component [Link] | 19 +
e-master/src/images copy/Component [Link] | 14 +
e-master/src/images copy/[Link] | Bin 0 -> 272463 bytes
e-master/src/images copy/[Link] | Bin 0 -> 78007 bytes
e-master/src/images copy/[Link] | Bin 0 -> 21566 bytes
e-master/src/images copy/[Link] | Bin 0 -> 21819 bytes
e-master/src/images copy/[Link] | 9+
e-master/src/images copy/[Link] | 14 +
e-master/src/images copy/[Link] | 14 +
e-master/src/images copy/[Link] | 9+
e-master/src/images copy/[Link] | Bin 0 -> 217777 bytes
e-master/src/images copy/[Link] | Bin 0 -> 262322 bytes
e-master/src/images copy/[Link] | Bin 0 -> 220948 bytes
e-master/src/[Link] | 9 +-
e-master/src/[Link] | 22 +-
e-master/src/layouts/[Link] | 0
e-master/src/layouts/[Link] | 0
e-master/src/[Link] | 1-
e-master/src/[Link] | 10 +
e-master/src/pages/Dashboard/[Link] | 346 +++++
e-master/src/pages/Dashboard/[Link] | 115 ++
e-master/src/pages/Homepage/[Link] | 267 ++++
e-master/src/pages/Homepage/[Link] | 390 ++++++
e-master/src/[Link] | 13 -
e-master/src/routes/[Link] | 24 +
e-master/src/services/[Link] | 0
e-master/src/services/[Link] | 0
e-master/src/services/[Link] | 0
e-master/src/services/[Link] | 0
e-master/src/[Link] | 5-
e-master/src/styles/[Link] | 4+
e-master/src/styles/[Link] | 0
64 files changed, 2756 insertions(+), 744 deletions(-)
create mode 100644 e-master/new
create mode 100644 e-master/public/assets/images/Component [Link]
create mode 100644 e-master/public/assets/images/Component [Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
create mode 100644 e-master/public/assets/images/[Link]
delete mode 100644 e-master/public/[Link]
delete mode 100644 e-master/public/[Link]
delete mode 100644 e-master/public/[Link]
delete mode 100644 e-master/public/[Link]
delete mode 100644 e-master/public/[Link]
delete mode 100644 e-master/src/[Link]
delete mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/[Link]
delete mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/components/[Link]
create mode 100644 e-master/src/components/[Link]
create mode 100644 e-master/src/components/[Link]
create mode 100644 e-master/src/components/[Link]
create mode 100644 e-master/src/images copy/Component [Link]
create mode 100644 e-master/src/images copy/Component [Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/images copy/[Link]
create mode 100644 e-master/src/layouts/[Link]
create mode 100644 e-master/src/layouts/[Link]
delete mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/pages/Dashboard/[Link]
create mode 100644 e-master/src/pages/Dashboard/[Link]
create mode 100644 e-master/src/pages/Homepage/[Link]
create mode 100644 e-master/src/pages/Homepage/[Link]
delete mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/routes/[Link]
create mode 100644 e-master/src/services/[Link]
create mode 100644 e-master/src/services/[Link]
create mode 100644 e-master/src/services/[Link]
create mode 100644 e-master/src/services/[Link]
delete mode 100644 e-master/src/[Link]
create mode 100644 e-master/src/styles/[Link]
create mode 100644 e-master/src/styles/[Link]
PS C:\Users\ADMIN\Downloads\ATI Project> git push origin main
Enumerating objects: 21, done.
Counting objects: 100% (21/21), done.
Delta compression using up to 8 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 8.44 KiB | 392.00 KiB/s, done.
Total 15 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (6/6), completed with 3 local objects.
To [Link]
d4d5e1d..61843b4 main -> main
PS C:\Users\ADMIN\Downloads\ATI Project>

You might also like