Git Subtree

Git Subtree ๐Ÿค–

Git Subtree --squash Option ๐Ÿค–

Git Subtree Workflow ๐Ÿค–

https://olrlobt.tistory.com/47

https://medium.com/@hongseongho/git-subtree-์‹คํ—˜ํ•ด๋ณด๊ธฐ-d5fb263d6a59

https://homoefficio.github.io/2015/07/18/git-subtree/

<aside> ๐Ÿ“Œ

์ž์‹ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋งŒ cloneํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์กด์žฌ(colab ์‚ฌ์šฉ ๋“ฑ)ํ•˜๋ฏ€๋กœ, submodule์„ ์“ฐ๊ธฐ๋กœ ๊ฒฐ์ •!

</aside>

Exercise

  1. subtree-child-private, subtree-child-public, subtree-parent ์›๊ฒฉ ๋ ˆํฌ ์ƒ์„ฑ, ๋กœ์ปฌ์— clone

  2. subtree-parent์— subtree-child-public์„ subtree๋กœ ์ถ”๊ฐ€

    git subtree add --prefix=subtree-child-public <https://github.com/jseop-lim/subtree-child-public> main
    
  3. subtree-parent์— subtree-child-private์„ subtree๋กœ ์ถ”๊ฐ€

    git subtree add --prefix=subtree-child-private <https://github.com/jseop-lim/subtree-child-private> main
    
  4. subtree-parent๋ฅผ ์›๊ฒฉ ์ €์žฅ์†Œ์— push

image.png