DevOps/Git
[GitHub] ํ์ผ ์ฌ๋ฆฌ๋๋ฐ ์๋ฌ {error: failed to push some refs to 'https://github.com/~~~/****.git'}
chaerlo127
2021. 12. 14. 19:16
728x90
๊ฐ์ฒด์งํฅ์ ์ธ์ด์ ํ๋ก๊ทธ๋๋ฐ ์์ ์ผ๋ก
backend frontend ํ์ผ์ ์ฌ๋ฆฌ๋ ค๊ณ ํ๋๋ฐ
๊ฐ์๊ธฐ ์ด์ ๊ฐ์ ์๋ฌ๊ฐ,,,,,
error: failed to push some refs to 'https://github.com/~~~/***.git'
[ํด๊ฒฐ ๋ฐฉ๋ฒ]
branch๊ฐ ์๋ ๊ฒฝ์ฐ์ด๊ธฐ ๋๋ฌธ์ 'branch๋ฅผ ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค.
-> ๋๋ ์ด๋ฌ๋๋ฐ, ์๊ฒฉ์ ์ฅ์๋ ๋ก์ปฌ์ ์ฅ์๊ฐ ๋ค๋ฅธ ๊ฒฝ์ฐ์๋ ๊ทธ๋ด ์๊ฐ ์๋ค๊ณ ํจ.
( git pull -> git push ํ๋ฉด ํด๊ฒฐ ์๋ฃ)
//1๋ฒ
$ git branch -m main
//2๋ฒ
$ git push -u origin main
git ํ์ผ ์ถ๊ฐ ์๋ฃ!!
[์ถ์ฒ] https://iancoding.tistory.com/240
728x90