草庐IT

point_tree

全部标签

git - 如何读取 git-ls-tree 输出的模式字段

$gitls-treefb3a8bdd0ce100644blob63c918c667fa005ff12ad89437f2fdc80926e21c.gitignore100644blob5529b198e8d14decbe4ad99db3f7fb632de0439d.mailmap100644blob6ff87c4664981e4397625791c8ea3bbb5f2279a3COPYING040000tree2fb783e477100ce076f6bf57e4a6f026013dc745Documentation100755blob3c0032cec592a765692234f1cb

git - 在 GitHub URL 的 : what is the difference between a tree and a blob?

每当我尝试添加指向github文件的链接时,我都会注意到这一点。您可以使用blob添加链接:https://github.com/facebook/pop/blob/master/Podfile如果将blob更改为tree,则会出现相同的文档:https://github.com/facebook/pop/tree/master/Podfile有什么区别?每当我想在文档中添加后代链接时,我应该选择哪个? 最佳答案 我找到了this文章有帮助。这详细解释了git对象。本质上,blob只是一堆字节,可以是任何东西,例如文本文件、图像、实

git merge 并得到此错误 "does not point to a commit"

我从github.comfork了一个repo,并且还设置了上游远程。下面是我的repo[LeezhmLIZHM~/Developments/OF_GIT]gitremote-vorigingit@github.com:leezhm/openFrameworks.git(fetch)origingit@github.com:leezhm/openFrameworks.git(push)upstreamhttps://github.com/openframeworks/openFrameworks.git(fetch)upstreamhttps://github.com/openfram

推送 : object 15abe3addde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null 时出现 Git 错误

我不确定自己是如何陷入这种困境的。但是当我试图将我的存储库推送到GitHub时,我遇到了error:object15abe3addde5ad5f7d25e8f0f220d2e9faf3cb22:containsentriespointingtonull。全推:[ashinn@puppet1puppet]$gitpushCountingobjects:27,done.Deltacompressionusingupto2threads.Compressingobjects:100%(11/11),done.Writingobjects:100%(16/16),5.67KiB,done.To

git - "Unable to determine upstream SVN information from working tree history"

我正在尝试使用GCCgit镜像,已记录here.前段时间,我克隆了git仓库:gitclonegit://gcc.gnu.org/git/gcc.git添加了git-svn内容:gitsvninit-Ttrunk--prefix=origin/svn+ssh://gcc.gnu.org/svn/gcc然后gitsvnrebase和gitsvndcommit等都运行良好。几个月后,我在本地git分支上完成了各种开发工作,并且开始向上游SVN提交更多更改:从git镜像更新:$gitrebase确保我拥有来自SVN的绝对最新版本,但它不起作用:$gitsvnrebase-vUnabletod

混帐 "Cannot create a tree from a not fully merged index"

我在VisualStudio2013中更改了一长串文件,现在正尝试提交它们并将它们与其他人所做的更改同步(我们使用的是bitbucket,如果这有区别的话)。尝试提交时,我输入了提交信息,但随后出现错误"Anerroroccurred.Detailedmessage:Cannotcreateatreefromanotfullymergedindex."我对git不是很有经验,所以任何帮助将不胜感激! 最佳答案 我刚刚遇到了同样的问题。Raina77ow链接到答案,但在这里详细说明:在您的工作目录中打开一个gitBash并运行gits

Git pull - 错误 : The following untracked working tree files would be overwritten by merge:

当我在监控服务器上每60秒执行一次gitpull时,我不断收到此错误。我正在使用chef和python脚本每60秒“gitpull”一次。Updating70fe6e8..2da34fcerror:Thefollowinguntrackedworkingtreefileswouldbeoverwrittenbymerge:rtb_redis_connections/redis_connections.pycPleasemoveorremovethembeforeyoucanmerge.Aborting我该如何处理?这些pyc文件不断被创建。 最佳答案

git 工作流 : throwaway merges and git-rerere - what's the point?

像大多数刚接触Git的人一样,我在尝试破译适用于gitmerge和gitrebase的用例时也有过困惑。我想我终于决定,就生成的工作副本状态而言,它们给你的是同样的东西。而且,它们都会导致相同的冲突。如果这不正确,请提供示例以启发我。在我看来,使用rebase而不是merge(如果您的更改没有被推送或pull)的主要好处是保持历史线性。我真正不明白的是开发git-rerere背后的原因。根据联机帮助页,git-rerere应该可以在您尝试解决之前已解决的冲突时为您提供帮助。我将要引用的示例位于http://www.kernel.org/pub/software/scm/git/docs

git - 致命的 : git-write-tree: error building trees

我正在尝试使用git-svn将一个大型的subversion存储库导入到git中(这样我就可以在git中工作,但仍然不时地提交subversion)。在导入超过4000个修订后,每当我运行gitsvnfetch或gitsvnrebase时,我都会收到以下错误,我无法摆脱:$gitsvnfetcherror:invalidobject1006441f2....742for'src/path/.../file.cs'fatal:git-write-tree:errorbuildingtreeswrite-tree:commandreturnederror:128到目前为止我尝试了什么:gi

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