Git2023. 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

'Git' 카테고리의 다른 글

[GIT] GIT 명령어  (0) 2021.04.17
git  (0) 2021.04.02
npm proxy 설정 초기화  (0) 2021.04.01
Vue.js 로그인 샘플  (0) 2021.03.09
git 명령어  (0) 2021.03.08
Posted by 미랭군