Git强制推送子树:错误:未知选项“ force”

时间:2018-11-09 16:58:54

标签: git git-subtree

我只是试图强行推动子树, 使用以下命令:

    def __init__(self, word, left=None, right=None) :
        self._word = word
        self._freq = 1
        self._left = left
        self._right = right

,我收到以下错误消息:

    probe = self._root
    while (probe != None) :
        if word < probe._word :     # go to left tree
            parent = probe          # before we go to child, save parent
            probe = probe._left
        elif word > probe._word :   # go to right tree
            parent = probe          # before we go to child, save parent
            probe = probe._right
        else:
            probe._freq += 1
            return

这很奇怪,因为我关注了一个网页,并在此处使用git push origin git subtree split --prefix dist gh-pages:gh-pages --force / error: unknown option `force' 参数在堆栈溢出中进行了回答。

有什么想法,怎么覆盖所有内容并将代码推送到gh-pages子树上?

0 个答案:

没有答案