빅데이터/git

[git] github에 커밋 올리기

pbj0812 2020. 4. 29. 04:41

0. repository 생성

 - 자신의 github 접속(로그인) 이후 우측 상단의 + 버튼을 눌러 repository 생성

 - 필수 내용 입력

 - 생성 결과

https://github.com/pbj0812/git_test.git

1. 실습

 1) 로컬 저장소 접근(참고)

cd /Users/pbj0812/Desktop/git_test

 2) 로컬 저장소를 github에 연결

git remote add origin https://github.com/pbj0812/git_test.git

 3) github repository에 올리기

git push origin master

  - 이후, github id, pwd  입력

2. 결과

3. 참고

 - 팀 개발을 위한 Git, Github 시작하기