ETC

[GitHub] 이클립스에 있는 프로젝트 깃허브에 올리기

worri-pi 2022. 1. 3. 20:04
git init
git branch -m master main
git clone __
git remote add origin __
git branch --set-upstream-to=origin/main
git add .
git commit -m ""
git push origin main
//혹시 Updates were rejected because the tip of your current branch is behind 라는 오류가 뜬다면
repository 생성 시 readme.md를 생성해서 발생하는 오류이다.
git push origin +main
728x90