개발 초기부터 github 주소를 가져와서 개발하는 경우도 있지만, 이미 개발하고 있는 내용을 레포와 연결해야하는 상황을 자주 마주할 것이다. 어떻게 해야할까?
- git init을 통해 깃 초기화를 시켜준다.
- git remote add origin https://github.com/YourUsername/YourRepository.git
Stage files:
- 스테이지에 올릴 파일들을 add해준다.
git add .
- 커밋해준다
git commit -m "Initial commit"
- 깃헙에 푸시!
git push -u origin master