我正在尝试从远程git存储库中删除目录。但是,当我这样做时:
$ git rm --cached QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid
fatal: pathspec 'QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid' did not match any files
我收到致命错误。有什么想法吗?
$ ls
QTNNSimplePredictTensorflowDataGen_HLD_2000,2000_DOI_2_PG_1_WD_0.0_SOT_allpair_20140101_20151231_TE_443_DOR_0.02_AF_sigmoid
QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20140101_20151231_TE_442_DOR_0.09_AF_sigmoid
QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid
答案 0 :(得分:1)
这导致你在git版本控制中删除了它。
您可以使用for (const Square& square : grid) // <-- return a const ref whenever it is enough and the subsequent action does not modify the object
painter.drawRect(square.rect);
找到它。只需直接在工作目录中删除它。