Git Repository 소스 올리기

shinee·2022년 6월 25일
0

github에 repository를 생성하고 소스를 올려보자!

1. git download

먼저 git이 없다면 git을 다운로드한다.

install시 나타나는 여러 설정들은 그냥 default로 두고 넘어갔다.

2. git repository 생성

github으로 가서 새로운 repository를 생성해준다.

3. git bash로 소스 올리기

올리고자 하는 소스가 있는 곳에서 git bash를 실행한다. (git bash here)

git bash에서 git init 명령어를 통해 로컬 저장소를 생성해준다.

그리고 아래 명령어를 차례대로 수행합니다 :)
git add .
git commit -m "commit message"
git remote add origin https://github.com/~/toyproject-backend.git
git branch -M master
git push -u origin master

profile
developer

0개의 댓글