[GIT] GitHub 프로젝트 연결 (main branch)

조회 886 · 댓글 0
후아빠작성자2022년 7월 21일
git init



git branch -m main



git add .



git commit -m "commit"



git remote add origin 주소



git remote -v



git push origin main

에러 발생


git pull origin main --allow-unrelated-histories

에러 발생


git config pull.rebase true



git pull origin main --allow-unrelated-histories

에러 안남


git push origin main

로그인 후 답글을 남길 수 있습니다.