我通过
添加了一个子树git subtree add --prefix=path/to/example --squash git@github.com:johndoe/example.git master
并想删除它。 There's no git subtree rm
command.我已经删除了 path/to/example
中的所有文件,但是当我 list subtrees 时 path/to/example
仍然出现通过
git log | grep git-subtree-dir | awk '{ print $2 }'
如何从 git 中删除子树 reference 以便它不再被推/pull 等?
最佳答案
简单remove the remote ,这是子树引用:git remote rm example
关于git - 如何删除 git 子树引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28751575/