Git

GitHub 초기 업로드

미랭군 2023. 1. 31. 15:54

1.  git 파일 생성

git init

 

2. 업로드 할 파일 선택

모든 파일 업로드

git add .

선택 파일 업로드

git add <파일명>/<코드제목>

 

3. 버전 관리 확인. (업그레이드 된 것은 'untracking')

git status

 

4. 주석 설정 (필수)

git commit -m "<주석>"

 

5. 원격 저장소 설정

git remote add origin <GitHub 저장소 주소> 

/** 
	ex: https://github.com/zeroty/hello-spring-boot
**/

6. 업로드

git push origin master

error 발생시

git push origin +master