readme 생성으로 인한 push 안됨 해결

박제욱·2024년 3월 8일
0

Git, GitHub, GitHub Flow

목록 보기
33/50
post-thumbnail

사진 출처 : https://namu.wiki/w/Git

readme를 깃허브 리포지터리를 만들 때 생성하기를 체크하여 생성한 경우 puah가 안될 때가 있다.

그런 경우 git pull origin main --allow-unrelated-histories를 입력한 후, 푸시를 하면 푸시를 할 수 있다.

이렇게 해도 안되면 git pull origin main --allow-unrelated-histories --rebase도 입력해보면 된다.

0개의 댓글