728x90
1. Updates were rejected because the remote contains work that you do not have locally
๋ฐ์ ์์ธ: ๋ค๋ฅธ ์ปดํจํฐ/์์น/๋ธ๋์น์์ ์์ ์ ํ๊ฑฐ๋, ๋ค๋ฅธ ์ฌ์ฉ์์ ์ถฉ๋์ด ๋ฐ์ํ ๊ฒฝ์ฐ
ํด๊ฒฐ ๋ฐฉ๋ฒ
1. git pull origin master
2. git push -f origin master (f๋ force, ๊ฐ์ ๋ก ํ๋ค)
2. Updates were rejected because the tip of your current branch is behind its remote counterpart.
๋ฐ์ ์์ธ: ์๊ฒฉ ์ ์ฅ์์ ์๋ ์ต์ ๋ณ๊ฒฝ ์ฌํญ์ ๋ก์ปฌ ์ ์ฅ์๋ก ๊ฐ์ ธ์ค์ง ์์ ์ฑ ์์ ์ ์งํํ๊ฑฐ๋, ๋ก์ปฌ ๋ธ๋์น๊ฐ ์๊ฒฉ ๋ธ๋์น์ ๋ค๋ฅธ ์ปค๋ฐ์ผ๋ก ๊ตฌ์ฑ๋์ด ์๋ ๊ฒฝ์ฐ
ํด๊ฒฐ ๋ฐฉ๋ฒ
1. git push -f origin master (f๋ force, ๊ฐ์ ๋ก ํ๋ค)
๋์ ์๊ฒฉ ์ ์ฅ์์ ์๋ ์ต์ ๋ณ๊ฒฝ ์ฌํญ๋ค์ด ์ฌ๋ผ์ง ์ ์์
728x90