728x90
처음에 git에 repository를 만들어 놓은 상태에서 local 파일을 업로드하려고 할 때 이런 오류가 발생했다.
fatal: refusing to merge unrelated histories, error: failed to push some refs to
git pull origin master --allow-unrelated-histories
를 이용해서 해결했다. 별로 좋지 않은 명령어이니 처음에 git을 push하는 과정에서 생기는 에러인 경우에만 사용하시길 바란다.
728x90
'웹개발 > git' 카테고리의 다른 글
git token이 만료 시 (0) | 2021.09.12 |
---|---|
warning: redirecting to https://github.com 경고 (0) | 2020.09.20 |
git에 repository가 이미 설정되어 있는 경우 repository 변경 및 terminal, pycharm 을 이용한 git에 내 폴더 올리기 (0) | 2020.09.19 |