Cute Happy Ghost
본문 바로가기
etc/git

visual studio code에서 저장소에 올리는법

by JENN_tech7 2020. 11. 9.
728x90
SMALL

ctrl+shifr+`누르면 터미널 뜸

git add .

git commit -m "메시지" 

git push 해주면 됨

C:\Users\user1\Frontend>git remote -v
origin  https://github.com/Jenn-tech/Frontend (fetch)
origin  https://github.com/Jenn-tech/Frontend (push)

C:\Users\user1\Frontend>git add .

C:\Users\user1\Frontend>git status
On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   20201109/app.js
        new file:   20201109/index.html
        modified:   README.md


C:\Users\user1\Frontend>git commit -m "html sample1"
[main fb624c4] html sample1
 3 files changed, 222 insertions(+)
 create mode 100644 20201109/app.js
 create mode 100644 20201109/index.html

C:\Users\user1\Frontend>git push
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 4 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 2.85 KiB | 2.85 MiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/Jenn-tech/Frontend
   1379f35..fb624c4  main -> main
728x90
LIST

'etc > git' 카테고리의 다른 글

gitignore  (0) 2020.11.10
gitbash에서 visualstudiocode로 이동  (0) 2020.11.10
git 4단계  (0) 2020.11.09
깃헙 계정이 이미 있을 때  (0) 2020.10.27
깃설치  (0) 2020.10.23

댓글