1. ERROR: (fatal: refusing to merge unrelated histories)
์ฆ์
1. git push๊ฐ ์๋๋ค.
ํด๊ฒฐ
1. push ์ ์ ๋จผ์ pull์ ํด์ ํ๋ก์ ํธ๋ฅผ ๋ณํฉํด ์ฃผ์ด์ผ ํ๋ค.
2. pull ๋ช ๋ น ์คํ์ ์ด๋ฐ ๋ฌธ๊ตฌ์ ํจ๊ป ์งํ๋์ง ์๋๋ค๋ฉด, ๋ค์์ ๋ช ๋ น์ผ๋ก ์คํํ๋ค.
$ git pull origin ๋ธ๋ฐ์น๋ช
--allow-unrelated-histories
# --allow-unrelated-histories
# ์๋ก ๊ด๋ จ ๊ธฐ๋ก์ด ์๋ ์ด์ง์ ์ธ ๋ ํ๋ก์ ํธ๋ฅผ ๋ณํฉํ ๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๊ฑฐ๋ถํ๋๋ฐ, ์ด๊ฒ์ ํ์ฉํด ์ฃผ๋ ๊ฒ์ด๋ค.
๋ฐ์ํ
'๐ DevOps > ๐ฅ GIT' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| GIT ์๊ฒฉ ์ ์ฅ์ ๋ช ๋ น์ด: branch, merge, checkout, push (0) | 2021.10.13 |
|---|---|
| [GIT] ๋ค๋ฅธ ์์ด๋ ์ฌ์ฉ์, "remote: Permission to ์๋ฌ" (์๋์ฐ) (0) | 2021.02.14 |
| ์๋ก์ด ๋ก์ปฌํ๊ฒฝ์์ ์์ ํ ๊ฒฝ์ฐ (0) | 2021.01.26 |
| [GIT] ์์ฃผ์ฐ๋ ๊ธฐ๋ณธ์ ์ธ git ๋ช ๋ น์ด ๋ชจ์ (0) | 2021.01.26 |
| [GIT] ์ ๋ฌธ, ๊ตฌ์กฐ, ์๋ ์์์ ๋ํด ์์๋ณด์ (0) | 2021.01.26 |