Git Subtree 使用

添加子树 #

使用 git subtree 将外部仓库添加到项目中:

git subtree add -P third-party/vendor/repo --squash <repo-git> master

过滤 MERGE 提交 #

使用正则表达式过滤合并提交:

^(?!Merge).*$