๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ‘ฉ‍๐Ÿ’ป ๊ฐœ๋ฐœ ๊ณต๋ถ€

[Git] ! [rejected] master -> master (non-fast-forward)error: failed to push some refs ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

728x90

 

๋งŒ์•ฝ ํ„ฐ๋ฏธ๋„์— ๋ช…๋ น์–ด git push origin master์„ ์ณค๋Š”๋ฐ

์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด?

 

To https://github.com/inthhh/travel_web_react.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/inthhh/travel_web_react.git'
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.

 

์•„๋งˆ๋„ ๊นƒํ—ˆ๋ธŒ ๋ ˆํฌ์˜ Readme ํŒŒ์ผ์ด๋‚˜ .gitignore ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ๋ผ๊ณ  ํ•œ๋‹ค.

 

pull์„ ๋ฐ›๊ณ  ๋‚˜์„œ ์ง„ํ–‰ํ•˜๋Š” ๊ฒŒ ์ •์„์ธ ๋ฐฉ๋ฒ•์ด๊ธด ํ•œ๋ฐ,

๋ณ„๋กœ ์ค‘์š”ํ•˜์ง€ ์•Š์€ ๋ฌธ์ œ๋ผ๋ฉด

์•„๋ž˜์™€ ๊ฐ™์ด ๋ธŒ๋žœ์น˜ ์ด๋ฆ„ ์•ž์— +๋ฅผ ๋ถ™์—ฌ์„œ ์ž…๋ ฅํ•˜๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค!

 

git push origin +master

 

 

728x90