Git - VSCode에서 GitHub 업로드

GARY·2022년 4월 2일
0

VSCode에서 GitHub 업로드

1. VSCode를 실행

2. Termial - New Termial 클릭(Ctrl+Shift+`)

3. […or create a new repository on the command line] 을 수행

* 명령어 정리
1> 맨 처음 프로젝트를 올릴 때는 git init
2> git add . : 모든 파일 업로드
3> git add HelloWorld.java : 해당 파일 업로드
4> git status (확인, 필수 X)
5> git commit -m "first commit" : 히스토리 작성
6> git remote add origin : 프로젝트와 깃허브 사이 연결고리
7> git remote -v (연결고리 확인, 필수 X)
8> git push origin master
** 이후 소스 업데이트 후엔 init 없이 git add 부터 수행

4. Git 새로고침을 해보면 소스가 잘 올라가 있다.

profile
개발하는 개린이 개리

0개의 댓글