git push -u origin(remote) main(branch)
git pull origin(remote) main(branch)
push를 해보면 error: failed to push some refs to '원격 저장소 주소' 오류 문구가 나온다.
pull을 먼저 해서, remote 저장소 파일을 받아온 다음에 push를 하면 된다.
git pull --no-rebase (remote) (branch)
-> merge 방식
git pull --rebase (remote) (branch)
-> rebase 방식(협업시 사용가능)
git push --force