๐™œ๐™ž๐™ฉ ๐™ง๐™š๐™ฅ๐™ค๐™จ๐™ž๐™ฉ๐™ค๐™ง๐™ฎ ํ•ฉ์น˜๊ธฐ

uuuouuoยท2022๋…„ 6์›” 13์ผ
0
post-thumbnail

๐Ÿ“ Git repository commit log ์œ ์ง€ํ•˜๋ฉฐ ํ•ฉ์น˜๊ธฐ


โœ” Repository A์— Repository B ํ•ฉ์น˜๊ธฐ

  1. A clone ๋ฐ›๊ธฐ
git clone [A repository์ฃผ์†Œ]
  1. A clone ๋ฐ›์€ ์œ„์น˜์—์„œ B repository๋ฅผ ๋„ฃ์„ ํ•˜์œ„ ํด๋” ์ƒ์„ฑ
git subtree add --prefix=[B repository ๋„ฃ์„ ํŒŒ์ผ ์ด๋ฆ„] [B repository์ฃผ์†Œ][B repository์—์„œ ์˜ฎ๊ฒจ์˜ฌ branch ๋ช…]

# ์˜ˆ์‹œ
git subtree add --prefix=B_file https://github.com/****/B.git master
  1. A repository์— push
git add .
git commit -m "[๋ฉ”์„ธ์ง€ ๋‚ด์šฉ]"
git push

0๊ฐœ์˜ ๋Œ“๊ธ€