草庐IT

cancel_work

全部标签

git - 错误 : The following untracked working tree files would be overwritten by checkout

当我执行gitstatus时,它说nothingtocommit,workingdirectoryclean然后我执行gitpull--rebase,它说:First,rewindingheadtoreplayyourworkontopofit...error:Thefollowinguntrackedworkingtreefileswouldbeoverwrittenbycheckout:includes/resources/moduledata/12/_Fr4_02_Invention_IPA_SR_la-Fête.pdfPleasemoveorremovethembeforey

Git: "working directory"到底在哪里?

我正在阅读一些Git教程。“工作目录”的概念一直被提及,但是,我阅读的教程或文档都没有指出这个“工作目录”在哪里或什么。p>我认为它实际上是.git的父目录,也就是我在其中运行gitinit的目录。但是我正在观看的视频教程谈到了没有什么可提交和“工作目录干净”的状态:Infactyoucanactuallymakeacopyoftherepository,andmakethatcopysothatitdoesnothaveaworkingdirectory,thisisactuallycalledthebareclone.ThisisactuallywhatGitHubuses.如果我

ios - 在 git 版本控制下添加项目时在 Xcode 中出现 "Share working copy?"

我有一个使用git进行版本控制的项目。我从GitHub克隆了一个库来使用(也可能使用git)。我将下载的项目的.xcodeproj文件添加到我自己的项目中,并得到了这个对话框:Shareworkingcopy?Aworkingcopythathasnotbeensharedhasbeenaddedtothisworkspace.ChooseYestoaddthisworkingcopytotheWorkspaceSourceControlData.如果我选择"is"或“否”会怎样?这种情况我应该选择哪个? 最佳答案 我尝试通过两种方

git - 致命的 : ambiguous argument 'origin' : unknown revision or path not in the working tree

我过去经常使用gitdifforigin。在不同的环境中它不起作用。我不知道为什么。user@host>gitdifforiginfatal:ambiguousargument'origin':unknownrevisionorpathnotintheworkingtree.Use'--'toseparatepathsfromrevisions,likethis:'git[...]--[...]'状态:user@host>gitstatusOnbranchmasternothingtocommit,workingdirectorycleanRemote:user@host>gitrem

iphone - Xcode 和 Git 源代码管理 : “The working copy XXXXX failed to commit files”

我使用Xcode开发和发布应用程序已经将近一年了。我一直使用git作为本地存储库,使用bitbucket作为远程存储库。直到今天早上一切都很好。我现在收到一个错误'工作副本“xxx”未能提交文件。请告诉我你是谁。”Xcode然后建议我运行gitconfig并给它一个电子邮件地址和名称。我不知道为什么它突然需要知道我是谁。我不知道它以前以为我是谁,我不希望它变得比现在更困惑。我没有在Mac上使用命令提示符做任何事情,所以我不确定它希望我在哪里输入此信息。我依稀记得一年前看到过关于使用命令提示符设置bitbucket的建议,但它们看起来很困惑,所以我从xcodeGUI中完成了所有操作。这是

macos - Git 错误 "fatal: ambiguous argument ' HEAD' : unknown revision or path not in the working tree"

我正在尝试从Debian初始化一个新的Git存储库(实际上是VirtualBox上的VM,在MacOSX上安装并运行):cd~mkdirtestcdtestgitinitInitializedemptyGitrepositoryin/home/david/test/.git/fatal:ambiguousargument'HEAD':unknownrevisionorpathnotintheworkingtree.Use'--'toseparatepathsfromrevisions[david@server-VM-001:test(master#)$]有什么问题?

git - 什么是 GIT_WORK_TREE,为什么我从来不需要设置这个 ENV var,为什么是现在?

我在UbuntuLinux下使用Git来同步和部署我的项目。我在我的本地Linux工作机器上有一个Repo,在我的服务器上有两个repo,一个裸repo和一个作为部署的应用程序。它一直运行良好,但现在我为我的其他网站创建了另一个存储库,但出现此错误:root@vserver5:/var/www/ninethsky#gitpulloriginmasterfatal:/usr/lib/git-core/git-pullcannotbeusedwithoutaworkingtree.所以我必须设置一个GIT_WORKING_TREEENV-Var,但这到底是什么,在哪里设置?这是我的repo

git - 为什么我收到消息 "fatal: This operation must be run in a work tree?"

刚刚在Windows上安装了git。我将GIT_DIR变量设置为c:\git\并验证该环境变量由cygwin维护(即echo$GIT_DIR应该是什么)。我转到要为其创建git存储库的文件夹,假设为c:\www,然后运行:gitinitgitadd.然后我得到错误:fatal:Thisoperationmustberuninaworktree我不确定出了什么问题,但是c:\git目录有一个配置文件,上面写着:[core]repositoryformatversion=0filemode=falsebare=truesymlinks=falseignorecase=true我很确定这不应

Git 存储 : "Cannot apply to a dirty working tree, please stage your changes"

我正在尝试应用我之前使用gitstashpopstash的更改并获取消息:Cannotapplytoadirtyworkingtree,pleasestageyourchanges关于如何处理这个问题有什么建议吗? 最佳答案 当我必须将stash的更改应用于脏工作副本时,例如从存储中pop多个变更集,我使用以下内容:$gitstashshow-p|gitapply-3&&gitstashdrop基本上是这样创建补丁将其通过管道传递给应用命令如果有任何冲突,需要通过三向merge来解决如果应用(或merge)成功,它会丢弃刚刚应用的存

git - .gitignore 和 "The following untracked working tree files would be overwritten by checkout"

所以我在我的.gitignore文件中添加了一个文件夹。一旦我执行了gitstatus它就会告诉我#Onbranchlatestnothingtocommit(workingdirectoryclean)但是,当我尝试更改分支时,我得到以下信息:My-MacBook-Pro:webappmarcamillion$gitcheckoutdeveloperror:Thefollowinguntrackedworkingtreefileswouldbeoverwrittenbycheckout:public/system/images/9/thumb/red-stripe.jpgpublic