草庐IT

new-project

全部标签

Git:说 origin 已经存在于 "NEW"(init) 存储库中,使用 shell 但安装了 Github for Windows

我安装了适用于Windows的Git,尽管我使用的是shell而不是Windows界面。如果我执行gitinit,然后尝试执行gitremoteaddorigingit@github.com:someuser/testme.git出现以下错误fatal:remoteoriginalreadyexists.所以我做了一个gitremote-v它返回以下内容originupstream所以它出现在那里但没有设置URL,我不明白为什么它在那里?如果我做一个gitremotermorigin它产生这个error:Couldnotremoveconfigsection'remote.origin

Eclipse project-wide error : Warning: The environment variable HOME is not set. 以下目录将用于 stash Git

启动Eclipse并出现此错误。我该如何解决?Warning:TheenvironmentvariableHOMEisnotset.ThefollowingdirectorywillbeusedtostoretheGituserglobalconfigurationandtodefinethedefaultlocationtostorerepositories:'C:\DocumentsandSettings\Wizard'.IfthisisnotcorrectpleasesettheHOMEenvironmentvariableandrestartEclipse.OtherwiseG

Eclipse project-wide error : Warning: The environment variable HOME is not set. 以下目录将用于 stash Git

启动Eclipse并出现此错误。我该如何解决?Warning:TheenvironmentvariableHOMEisnotset.ThefollowingdirectorywillbeusedtostoretheGituserglobalconfigurationandtodefinethedefaultlocationtostorerepositories:'C:\DocumentsandSettings\Wizard'.IfthisisnotcorrectpleasesettheHOMEenvironmentvariableandrestartEclipse.OtherwiseG

GIT:提交时为 "fatal: unable to write new_index file"

当我尝试将更改提交到本地存储库时,我收到以下消息:致命:无法写入new_index文件 最佳答案 因为这个threadillustrates,这通常是磁盘空间问题:$gitstatusfatal:unabletowritenew_indexfileOnecauseofthisthatIfoundwasthatmyfilesystemhadrunoutofspace.Findinglargedirectorieswithsomethinglikethefollowinghelpedcleanupsomelogfilesthathadr

GIT:提交时为 "fatal: unable to write new_index file"

当我尝试将更改提交到本地存储库时,我收到以下消息:致命:无法写入new_index文件 最佳答案 因为这个threadillustrates,这通常是磁盘空间问题:$gitstatusfatal:unabletowritenew_indexfileOnecauseofthisthatIfoundwasthatmyfilesystemhadrunoutofspace.Findinglargedirectorieswithsomethinglikethefollowinghelpedcleanupsomelogfilesthathadr

git - 协议(protocol)错误 : expected old/new/ref, 得到 'shallow deeb...'

我正在编辑一个使用--depth1(浅克隆)克隆的git存储库。我想推送我的更改(提交)但我收到此错误:$gitpushCountingobjects:14,done.Deltacompressionusingupto4threads.Compressingobjects:100%(8/8),done.Writingobjects:100%(8/8),56.88KiB|0bytes/s,done.Total8(delta5),reused0(delta0)fatal:protocolerror:expectedold/new/ref,got'shallowdeeb2171db739fd

git - 协议(protocol)错误 : expected old/new/ref, 得到 'shallow deeb...'

我正在编辑一个使用--depth1(浅克隆)克隆的git存储库。我想推送我的更改(提交)但我收到此错误:$gitpushCountingobjects:14,done.Deltacompressionusingupto4threads.Compressingobjects:100%(8/8),done.Writingobjects:100%(8/8),56.88KiB|0bytes/s,done.Total8(delta5),reused0(delta0)fatal:protocolerror:expectedold/new/ref,got'shallowdeeb2171db739fd

git - Azure DevOps - pull 请求 Git "Next steps: Manually resolve these conflicts and push new changes to the source branch."

我创建了一个名为dev的分支。我已经完成了一个将开发代码发送给master的pull请求,当我执行这个pull请求时它告诉我:50多个冲突阻止自动merge“后续步骤:手动解决这些冲突并将新更改推送到源分支。”我从这里去哪里?我只希望所有dev分支替换master中的任何内容。我看不到解决这些冲突的选项。 最佳答案 您必须在您的PC上执行以下操作在分支dev$gitpull--no-rebaseoriginmaster-这将创建一个merge提交,您将必须解决在dev和master上更改的文件中的冲突。gitstatus将显示具有冲

git - Azure DevOps - pull 请求 Git "Next steps: Manually resolve these conflicts and push new changes to the source branch."

我创建了一个名为dev的分支。我已经完成了一个将开发代码发送给master的pull请求,当我执行这个pull请求时它告诉我:50多个冲突阻止自动merge“后续步骤:手动解决这些冲突并将新更改推送到源分支。”我从这里去哪里?我只希望所有dev分支替换master中的任何内容。我看不到解决这些冲突的选项。 最佳答案 您必须在您的PC上执行以下操作在分支dev$gitpull--no-rebaseoriginmaster-这将创建一个merge提交,您将必须解决在dev和master上更改的文件中的冲突。gitstatus将显示具有冲

eclipse - EGit的选项 "Auto share projects located in git repository"是什么意思?

每次我导入一个maven项目。剩下的任务中总是出现Autosharegitproject(waiting)。我在网上搜索,只是找到启用/禁用该选项的位置,但我想了解正在做什么以及是否需要它。我通常做的是在命令行中创建/克隆项目,然后将其导入Eclipse,然后我可以在EGit中完成所有git工作。Autoshareprojectslocatedingitrepository选项在这种情况下是必需的还是我可以禁用它? 最佳答案 简而言之:是的,该选项是必需的,否则您将不得不手动将项目与其所属的存储库共享。Autoshareprojec