ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

์ƒํ™ฉ

๊นƒ ๋ ˆํฌ๋ฅผ ํ˜ผ์ž ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

๋ธŒ๋žœ์น˜๋Š” main๊ณผ develop 2๊ฐœ์ž…๋‹ˆ๋‹ค.

develop์—์„œ ์ž‘์—…ํ•œ ๋’ค main์—์„œ PRํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ž‘์—… ์ค‘์ž…๋‹ˆ๋‹ค.

ํ‰์†Œ์™€ ๊ฐ™์ด develop ๋ธŒ๋žœ์น˜์— pushํ–ˆ๋Š”๋ฐ, ๊ทธ๋Ÿฌ๋ฉด ์ž๋™์œผ๋กœ main์— PR์ด ๋œฌ๋‹จ ๋ง์ด์ฃ .

๊ทผ๋ฐ ์•ˆ๋œจ๋Š”๊ฑฐ์—์š”!!!

๊ทธ๋ž˜์„œ main ๋ธŒ๋žœ์น˜๋กœ ์ด๋™ํ•œ ๋’ค, develop ๋ธŒ๋žœ์น˜๋ฅผ mergeํ•˜๊ณ  push ํ–ˆ๋Š”๋ฐ..

๊ธ€์Ž„ ๊ทธ ์ „์— pull์„ ์•ˆํ•œ๊ฑฐ์—์š”!!

merge ์ „์— ๊ผญ pull ํ•˜์ž

๊ทธ๋ž˜์„œ pull์„ ํ–ˆ๋”๋‹ˆ.. ์•„๋ž˜๊ฐ™์€ ์ƒํ™ฉ์ด..

nakyung@imnagyeong-ui-MacBookPro Solution-Challenge-2022-Pocket-Doctor-Server % git pull origin main
https://github.com/DSCHUFS/Solution-Challenge-2022-Pocket-Doctor-Server URL์—์„œ
 * branch            main       -> FETCH_HEAD
ํžŒํŠธ: You have divergent branches and need to specify how to reconcile them.
ํžŒํŠธ: You can do so by running one of the following commands sometime before
ํžŒํŠธ: your next pull:
ํžŒํŠธ: 
ํžŒํŠธ:   git config pull.rebase false  # merge (the default strategy)
ํžŒํŠธ:   git config pull.rebase true   # rebase
ํžŒํŠธ:   git config pull.ff only       # fast-forward only
ํžŒํŠธ: 
ํžŒํŠธ: You can replace "git config" with "git config --global" to set a default
ํžŒํŠธ: preference for all repositories. You can also pass --rebase, --no-rebase,
ํžŒํŠธ: or --ff-only on the command line to override the configured default per
ํžŒํŠธ: invocation.
fatal: Need to specify how to reconcile divergent branches.

 

ํžŒํŠธ ๋ช…๋ น์–ด 3๊ฐœ ์ค‘ ์•„๋ž˜ 2๊ฐœ๋ฅผ ์ž‘์„ฑํ–ˆ๋Š”๋ฐ, ํ•ด๊ฒฐ์ด ์•ˆ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

 

nakyung@imnagyeong-ui-MacBookPro Solution-Challenge-2022-Pocket-Doctor-Server % git pull origin main
https://github.com/DSCHUFS/Solution-Challenge-2022-Pocket-Doctor-Server URL์—์„œ
 * branch            main       -> FETCH_HEAD
fatal: ์ •๋ฐฉํ–ฅ์ด ๋ถˆ๊ฐ€๋Šฅํ•˜๋ฏ€๋กœ, ์ค‘์ง€ํ•ฉ๋‹ˆ๋‹ค.

 

์œผ์œผ์œผ์œผ ๋ญ˜ ํ•ด๋„ ํ•ด๊ฒฐ์ด ์•ˆ๋˜๋‹ค๊ฐ€ ๊ฒฐ๊ตญ ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•ด๊ฒฐํ–ˆ์–ด์š”!

 

ํ•ด๊ฒฐ

git pull --rebase

 

https://mytory.net/2022/01/13/git-fatal-not-possible-to-fast-forward-aborting.html

 

[Git] Fatal: Not possible to fast-forward, aborting / fatal: ์ •๋ฐฉํ–ฅ์ด ๋ถˆ๊ฐ€๋Šฅํ•˜๋ฏ€๋กœ, ์ค‘์ง€ํ•ฉ๋‹ˆ๋‹ค.

์ผ๋‹จ์€ git pull --rebase๋กœ ํ•ด๊ฒฐํ•œ๋‹ค. ๊ทผ๋ณธ์  ํ•ด๊ฒฐ์„ ํ•˜๋ ค๋ฉด ๋ณธ๋ฌธ์„ ์ฝ์ž.

mytory.net

 

**๋กœ์ปฌ๊ณผ ๋ฆฌ๋ชจํŠธ๊ฐ€ ๋งž์ง€ ์•Š๋Š” ๊ฒฝ์šฐ**

๋Œ“๊ธ€