CodeTech/Git
Git - 4 [로컬 레포지토리와 리모트 레포지토리 연결하기]
뚜드림
2020. 8. 30. 23:27
먼저 github 홈페이지에서 레포지토리를 생성한다.

이름을 넣고 설명을 넣은 후 생성하게 되면

위와 같은 화면이 뜨는데 이중
...or push an existing repository from the commad line
이라는 내용 아래에 있는 코드
git remote add origin https://github.com/Doodream/레포지토리 이름.git
git branch -M master
git push -u origin master
이내용을 한줄씩 git bash에 넣는다.

그럼 연동 완료. 실제 푸시를 해보자.


이와 같이 커밋이 된것을 알수 있다.