🟥 fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git remote -v
-> 아무것도 뜨지 않았다. 리포지토리와 프로젝트 폴더를 각각 생성 후 아직까지 연결하지 않은 것.
git remote add origin [github 원격저장소 URL]
git push origin main
다시 push 했는데 다음과 같은 에러 발생
🟥! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:random-olive/House-Bunny.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
강제 push를 하니까 커밋이 온전히 반영되었다.
git push origin +main