git subtree
Merge subtrees together or split repository into subtrees. More information: https://manned.org/git-subtree.
- Add a Git repository as a subtree and squash the commits together:
git subtree add --squash
- Update subtree repository to its latest commit:
git subtree pull
- Merge recent changes up to the latest subtree commit into the subtree:
git subtree merge --squash
- Push commits to a subtree repository:
git subtree push
- Extract a new project history from the history of a subtree:
git subtree split
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
