본문 바로가기
기타

[Git] Git에 Push하기

by 마고커 2022. 4. 18.


Git에 프로젝트 만들어서 Upload (Push) 하기 위해서는 아래의 절차를 따른다.

 

1. github.com에서 새로운 repository 생성 (여기서는 Lottery로 지음)

 

2. Local 에서 해당 Repository에 올릴 디렉토리로 이동해서 아래 수행

 

> git init
> git add .
> git commit -m "initial commit"
> git remote add origin https://github.com/<나의계정>/lottery.git
> git branch -M main
> git push -u origin main

Branch 이름을 main으로 하고 Push한 결과

 



댓글