Dev
[GIT] 로컬 git 내용을 github에 push 하기
김문기
2018. 2. 6. 23:12
우분투 환경에서 로컬 git 으로 작업 하던 내용을 온라인 github 로 push 하는 방법은 아래와 같다.
1. https://github.com/ 로그인
2. 신규 프로젝트 생성
- "Repository name" 항목 기입
- Create repository 버튼 클릭
3. 로컬 작업 디렉토리 이동
4. 원격 서버 등록
- git remote add origin https://github.com/<주소>/<Repository name>.git
5. 데이터 push
- git push -u origin master
- 아이디, 패스워드 입력 하면 로컬 git 내용이 원격지에 push 된다.
명령어 요약
git remote add origin https://github.com/<주소>/<Repository name>.git
git push -u origin master