我只是试图强行推动子树, 使用以下命令:
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子树上?