! [rejected] main -> main (fetch first)
error: 레퍼런스를 'https://github.com/JW0203/StudyJavascript.git'에 푸시하는데 실패했습니다
- github 홈페이지에서 readme 수정했는데 local에서 변경 사항을 업데이트?를 안해줘서 발생한 것 같다.
git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
오브젝트 묶음 푸는 중: 100% (3/3), 684 bytes | 171.00 KiB/s, 완료.
https://github.com/JW0203/StudyJavascript URL에서
0130935..a1f4a6c main -> origin/main
힌트: You have divergent branches and need to specify how to reconcile them.
힌트: You can do so by running one of the following commands sometime before
힌트: your next pull:
힌트:
힌트: git config pull.rebase false # merge
힌트: git config pull.rebase true # rebase
힌트: git config pull.ff only # fast-forward only
힌트:
힌트: You can replace "git config" with "git config --global" to set a default
힌트: preference for all repositories. You can also pass --rebase, --no-rebase,
힌트: or --ff-only on the command line to override the configured default per
힌트: invocation.
업데이트 한다고 "git pull" 후 완료 메세지를 받았는데, 뒤에 따라오는 힌트들은 나보고 뭘 하라는 걸까?
... 어떻게 강제로 branch merge 해서 해결? 되었다.
push 하기전에
git status
를 꼭 해서 변경된 사항이 없는지 확인하자.