Github 연동
카테고리 없음

Github 연동

* Git 회원 가입

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

* Git Repository 생성

저장소 생성
저장소 정보 입력

* 로컬 저장소 초기화

> git init

* 로컬 저장소에 소스 묶어주기

> git add .

* 로컬 저장소의 변경 사항 커밋

> git commit -m "first commit"

* 로컬 저장소에 원격지 저장소 정보 세팅

> git remote add origin https://github.com/hgombach/docker-react-app.git

# 원격지 세팅 정보 조회
> git remote -v

* 로컬 소스내용 푸시

> git push -u origin main

* git 의 저장소 명칭 변경후에는 아래 스크립트 실행 필요 (main --> master로 이름변경)

> git branch -m main master
> git fetch origin
> git branch -u origin/master master
> git remote set-head origin -a