에러 1톤 해결한 김에 씀
git init
git commit -m "initial commit"
git branch -M main
git remote add origin (git repository 링크)
git push -u origin main
에러는 다음과 같이 뜰 수 있음
1. fatal: 'for-you' does not appear to be a git repository fatal: Could not read from remote repository.
2. Please make sure you have the correct access rights and the repository exists.
해결 방법
git config user.name "git 유저명"
! [rejected] main -> main (fetch first)
해결 방법
git fetch
! [rejected] main -> main (non-fast-forward)
git push origin +main