728x90
๐คฏ ์ํฉ
๊น์ pushํ๋ ค๋ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค
To https://github.com/hyein604/flutter_todo_list
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/hyein604/flutter_todo_list'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
๐ง ์ด์
๊นํ๋ธ(์๊ฒฉ์ ์ฅ์)์ ์๋ ์ฝ๋ํ์ผ๋ค๊ณผ ๋ด์ปดํจํฐ(๋ก์ปฌ์ ์ฅ์)์ ์๋ ์ฝ๋ํ์ผ๋ค์ด ๋ค๋ฅด๊ธฐ ๋๋ฌธ์ด๋ค.
๋ด ์ปดํจํฐ์ Aํ์ผ์ด ์๊ณ ๊นํ๋ธ์๋ Aํ์ผ์ด ์๋๋ฐ pushํ๋ค?
โฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธ
๐ ํด๊ฒฐ
pullํ๊ณ ๋ค์ pushํ๋ฉด ๋๋ค.
git pull {์๊ฒฉ์ ์ฅ์๋ณ์นญ} {๋ธ๋์น์ด๋ฆ}
git push {์๊ฒฉ์ ์ฅ์๋ณ์นญ} {๋ธ๋์น์ด๋ฆ}
๋ค๋ฅธ๊ณณ์์ 'git pull origin master' ์ด๋ผ ์ ๋ ฅํ๋ผ๋ ๊ธ์ ๋ง์ด ๋ดค์๊ฒ์ด๋ค.
๋๋ ์๊ฒฉ์ ์ฅ์๋ณ์นญ์ด 'flutter_todo_list' ์ด๊ณ , ๋ธ๋์น ์ด๋ฆ์ด main ์ด์๊ธฐ์,
'git pull flutter_todo_list main' ์ด๋ผ๊ณ ์ ๋ ฅํ๋ค.
์ด๊ฑฐ๋๋งค ๋ง์ด ํค๋งธ๋ค..!
- ์๊ฒฉ์ ์ฅ์ ๋ณ์นญ ์๋๋ฐฉ๋ฒ
git remote -v
- ๋ธ๋์น์ด๋ฆ ์๋ ๋ฐฉ๋ฒ
728x90