-
로컬 프로젝트 github 연결하기잡다구리 2020. 12. 23. 17:38
로컬에 프로젝트를 만들어서 git과 연결할때 계속 까먹어서 포스팅한다.
사전조건: git이 설치되어 있어야 한다.
1. github등의 페이지에서 repository를 생성한다.
2. git cli혹은 cmd 창의 프로젝트 경로에서
git init
3.git status
4.git add .
5.git commit -m "your message"
6.git remote add origin 깃주소
ex) git remote add origin https://test.github.com/~.git
7.git push -u origin master
에러없으면 끝