我在存储库上做了一个git rebase。我重新调整了许多提交。
我现在将这些文件保存在本地目录中,无法删除。
当我尝试删除它们时,我的计算机说找不到它们。
编辑: 不幸的是,我无法回忆起我所做的一切。我将尽力详细说明我所做的事情。 我首先做了一些git rebase,以便我有一个更干净的历史记录。我能够从许多项目中获得一些承诺。 我使用fixup方法将提交压缩在一起。 然后我推送到我的远程仓库。 经过一切之后,我意识到我不小心修复了我想要的提交。 因此,我从reflog进行了git reset --hard硬回到我想要的提交状态。 之后,我再次基于整个内容进行了git rebase并保留了我的提交。具有恒定缓冲区的合并队列预测是我保留的提交之一,但是我改写了。 最后,我再次推送到远程仓库。
请让我知道其他有用的信息。
谢谢
答案 0 :(得分:0)
诸如此类的文件在解决冲突后仍作为临时文件保留在工作树中(大多数情况下)。这些文件没有被git跟踪。要删除这些文件,可以手动删除它们,也可以通过[ main] CXFActivator INFO Adding the extensions from bundle org.apache.camel.camel-cxf-transport (69) [org.apache.camel.component.cxf.transport.CamelTransportFactory]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (73) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-frontend-jaxws (74) [org.apache.cxf.jaxws.context.WebServiceContextResourceResolver]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-xml (75) [org.apache.cxf.binding.xml.XMLBindingFactory, org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-addr (77) [org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder, org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider, org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader, org.apache.cxf.ws.addressing.WSAddressingFeature$WSAddressingFeatureApplier, org.apache.cxf.ws.addressing.MAPAggregator$MAPAggregatorLoader]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-ws-policy (78) [org.apache.cxf.ws.policy.PolicyEngine, org.apache.cxf.policy.PolicyDataEngine, org.apache.cxf.ws.policy.AssertionBuilderRegistry, org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry, org.apache.cxf.ws.policy.PolicyBuilder, org.apache.cxf.ws.policy.PolicyAnnotationListener, org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider, org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry, org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.external.URIDomainExpressionBuilder, org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider, org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder, org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-bindings-soap (82) [org.apache.cxf.binding.soap.SoapBindingFactory, org.apache.cxf.binding.soap.SoapTransportFactory]
[ main] CXFActivator INFO Adding the extensions from bundle org.apache.cxf.cxf-rt-wsdl (83) [org.apache.cxf.wsdl.WSDLManager]
命令删除它们。为确保一切正常,该过程应分两个步骤完成:
git clean
命令清除所有未跟踪的文件。