Skip to content

git rebase

seovalue edited this page Jul 8, 2021 · 1 revision

์ƒํ™ฉ

  1. ๋™์ผํ•œ develop ๋ธŒ๋žœ์น˜์—์„œ ๋‘ feature ๋ธŒ๋žœ์น˜(f1, f2)๋ฅผ ์ƒ์„ฑํ•ด ์ž‘์—…ํ•œ๋‹ค.
  2. f1์ด ๋จผ์ € develop ๋ธŒ๋žœ์น˜์— ๋จธ์ง€๋œ๋‹ค.
  3. f2์—์„œ develop์˜ ์ƒํ™ฉ์„ ๋ฐ˜์˜ํ•ด์•ผํ•œ๋‹ค.

How to do

  1. develop ๋ธŒ๋žœ์น˜ ์ตœ์‹ ํ™”
git checkout develop
git pull develop
  1. feature๋ฅผ Rebase
git checkout f2
git rebase develop
# if conflict:
    conflict ๋ฐœ์ƒ ํŒŒ์ผ์„ ์ง์ ‘ ํ•ด๊ฒฐํ•œ๋‹ค.
    git add <conflict๊ฐ€ ๋ฐœ์ƒํ•œ ํŒŒ์ผ>
    git rebase --continue
git merge f2

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด, f2์—์„œ develop์— ์ตœ์‹ ํ™”๋œ ๋‚ด์šฉ์„ ๋ฐ›์•„์˜ฌ ์ˆ˜ ์žˆ๋‹ค. ๐Ÿ‘

๋ณด๊ณ  ๋˜ ๋ณด๊ณ  (๋ณด๋˜๋ณด)


Documents ๐Ÿ“ƒ


ํŒ€ ๊ทœ์น™ ๐Ÿค

Code Convention

๊ธฐ์ˆ  ๊ณต์œ  ๐Ÿธ


๋ฐ์ผ๋ฆฌ ๋ฏธํŒ… ๋ฐ ํšŒ์˜๋ก ๐Ÿณ

2์ฐจ ~ 4์ฐจ ํšŒ์˜ ๋ฐ ๋ฐ์ผ๋ฆฌ ๋ฏธํŒ…์€ ๋””์Šค์ฝ”๋“œ์—์„œ ์ง„ํ–‰๋˜์–ด ์ด์Šˆ๋กœ ๋ฐ˜์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ดํ›„ ํšŒ์˜ ๋ฐ ๋ฐ์ผ๋ฆฌ ๋ฏธํŒ…์€ ๋””์Šค์ฝ”๋“œ์—์„œ ์ง„ํ–‰๋˜์–ด ์ด์Šˆ๋กœ ๋ฐ˜์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Clone this wiki locally