Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github 获得;不指向有效的提交";_Github - Fatal编程技术网

Github 获得;不指向有效的提交";

Github 获得;不指向有效的提交";,github,Github,我正试图将我的分支重新设置到远程主机上,我收到了这个消息,知道这意味着什么吗 git clone https://github.com/yaroslavvb/tensorflow.git cd tensorflow git checkout macbook git remote add tfmain https://github.com/tensorflow/tensorflow.git git fetch -a git rebase --onto tfmain/master fatal

我正试图将我的分支重新设置到远程主机上,我收到了这个消息,知道这意味着什么吗

git clone https://github.com/yaroslavvb/tensorflow.git
cd tensorflow
git checkout macbook

git remote add tfmain https://github.com/tensorflow/tensorflow.git
git fetch -a 

git rebase --onto tfmain/master

fatal: Needed a single revision
Does not point to a valid commit: tfmain/master
你可能是说

git fetch --all