git submodules - Is git-subtree appropriate for me? -
i have 3rd party library included in project. important "subproject" code should included in main/parent one, because objective when other people makes git pull, download code no extra-effort (or minimal).
but want possibility download updates library own repo.
previously, library downloaded directly directory , updates managing commits in main project.
now i'm thinking in use git-subtree or git-submodule. git-subtree useful purpose. git-submodule better?
git subtree.
- easy others get.
- avoids complications if want make changes library.
- use squash option avoid pulling in massive histories when merging library.
- you can merge library, using git subtree command, , no 1 else needs have support command access , use repository.
- changes made in repository inadvertently library no problem, , split out if want contribute them.
Comments
Post a Comment