git subtree์—์„œ --squash ์˜ต์…˜์€ ์„œ๋ธŒ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋ถ€๋ชจ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์— ํ†ตํ•ฉํ•  ๋•Œ ์ปค๋ฐ‹ ํžˆ์Šคํ† ๋ฆฌ๋ฅผ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ• ์ง€๋ฅผ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์„ ์‚ฌ์šฉํ• ์ง€ ์—ฌ๋ถ€์— ๋”ฐ๋ผ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ฐจ์ด๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค:


1. --squash๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ

git subtree add --prefix=<subdirectory> <repo-url> <branch-name> --squash

๋™์ž‘

์žฅ์ 

๋‹จ์ 


2. -squash๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ

git subtree add --prefix=<subdirectory> <repo-url> <branch-name>

๋™์ž‘