본문 바로가기
IT&DEV - IT & 개발/Common

기존 프로젝트 git 연결하기

by Hoft 2021. 6. 11.

1. git에 프로젝트 생성

 

2. 프로젝트 루트 경로로 이동

cd <project Name>

3. git 초기화

git init

 

4. git Repository 연결

git remote add origin <Project 주소>

5. origin remote의 변경사항을 local repository에 업데이트

git pull origin master 

6. 모든 파일을 스테이지에 추가

git add .

7. 변경사항 커밋

git commit -m "first commit"

 

7. remote repository에 업로드

git push -u origin master

댓글