- 먼저 로컬 저장소에 initialize 해준다.
git init
- git에 올려주는 작업을 한다.
git add . git commit -m "msg"
- 만들어둔 repo를 끌어와 연동시킨다.
git remote add origin <원격저장소 주소.git>
- pull로 github의 repo를 끌어와준다.
git pull --allow-unrelated-histories origin master
- 마지막으로 push 작업을 -u 옵션으로 해준다.
git push -u origin master
중간에 오류가 발생하거나 틀린 부분이 있다면 댓글 부탁드립니다. 🙋♂️