Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 如何在巴邦升级Git_Windows_Git_Babun - Fatal编程技术网

Windows 如何在巴邦升级Git

Windows 如何在巴邦升级Git,windows,git,babun,Windows,Git,Babun,我刚刚安装了: 在Windows8中,如何将Git升级到最新版本 它附带 {}»git--版本~ git版本1.7.9 我确实试过: pact install git-2.0.4.tar 其中git-2.0.4.tar位于当前目录中。我也尝试复制它/设置,但仍然出现以下错误: { ~ } » pact install git-2.0.4.tar Working directory is /setup Mirror is http://mirrors.kernel.org/sourcew

我刚刚安装了:

在Windows8中,如何将Git升级到最新版本

它附带

{}»git--版本~ git版本1.7.9

我确实试过:

 pact install git-2.0.4.tar
其中git-2.0.4.tar位于当前目录中。我也尝试复制它/设置,但仍然出现以下错误:

{ ~ }  »  pact install git-2.0.4.tar
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
setup.ini taken from the cache

Installing git-2.0.4.tar
Package git-2.0.4.tar not found or ambiguous name, exiting

使用Cygwin安装程序更新您的安装:

  • 从下载Cygwin安装程序
  • 运行安装程序并使用.babun\cygwin目录(很可能是C:\Users\your username\.babun\cygwin)作为根安装目录
  • 单击安装程序。默认情况下,它升级所有软件包
  • 重新安装git也可能有效:

    pact remove git
    pact install git
    

    重新安装更快,但完整的Cygwin升级更安全,因为所有依赖项也会自动升级。

    pact update git


    刚刚更新到Git的最新版本2.5.3。

    更新后,我发现Git有问题:

    警告:不支持的Git推送策略集-更改为 “匹配”错误:无法将git push.default设置为“匹配”-可能 引起问题。。。无法启动插件[git]

    但是在用下面的命令卸载它之后,它再次工作

    pact remove git
    
    我想现在babun使用windows安装git..

    在git更新之后:

    WARNING: Git push strategy set to  which is unsupported - changing to 'matching'
    ERROR: Cannot set git push.default to 'matching' - may cause problems...
    Error on or near line 16, last command 'trap 'catch_err "${previous_command}" ${LINENO}' ERR';
    Error on or near line 4, last command 'source "$babun_tools/git.sh"';
    Could not start plugin [git]
    
    好像又回到了CygWin。。。但首先我将尝试一下Linux的Windows子系统

    wslgit.bat:(在x64拱上)


    很多事情都是偶然发生的。这是其中之一

    我喜欢使用Babun,但现在当Babun停止使用时,我知道git版本将成为一个问题(wasv2.1.4)

    我的工作电脑没有连接到互联网,所以我通常必须下载完整的安装文件,并在传输后运行它们。不可能有互联网依赖

    我已经安装了Git Bash,但如果可能的话,我更喜欢Babun终端

    在Babun内部,我运行了
    pact update git
    ,但我知道这当然行不通,因为我没有连接到internet

    当我运行
    pact update git

  • 吉特
  • pact抱怨没有镜子(这并不奇怪)
  • 条约放弃了
  • 然后我想,既然Git不见了,那就是巴邦的事了

    我输入了
    git版本
    ,结果是
    git版本2.21.0.windows.1


    也许对每个人来说都不是最好的解决方案,但是当你已经安装了Git Bash并且没有互联网连接时,它就可以工作了

    尝试使用
    pact update git
    仅更新
    git
    安装时(在撰写本文时)似乎正常-找到了相应的镜像,并且成功下载并安装了软件包

    然而,正如@torben vesterager在2019年3月13日指出的那样,
    git的这个版本可能会导致错误。我看到了和他一样的错误:

    WARNING: Git push strategy set to  which is unsupported - changing to 'matching'
    ERROR: Cannot set git push.default to 'matching' - may cause problems...
    Error on or near line 16, last command 'trap 'catch_err "${previous_command}" ${LINENO}' ERR';
    Error on or near line 4, last command 'source "$babun_tools/git.sh"';
    Could not start plugin [git]
    
    进一步的调查表明,这实际上是因为
    git
    二进制文件与Cygwin本身的安装版本不兼容-在Windows环境下运行
    git.exe
    会对链接不正确的DLL发出适当的警告(对于没有捕获确切的消息表示歉意)

    要正确解决此问题,请关闭所有Babun窗口并从Babun主目录运行
    update.bat
    。这将把Cygwin更新到最新版本(babun update不提供该版本),包括更新版本的
    git

    » uname -a
    CYGWIN_NT-10.0-WOW a5044 3.0.7(0.338/5/3) 2019-04-30 18:04 i686 Cygwin
    » git version
    git version 2.21.0
    

    如果你希望有人帮助你,你应该准确地描述你的实际问题。您尝试了哪些步骤,遇到了什么样的问题,…?重新安装对我来说已经足够了。重新安装将无法在2015年2月18日正常工作。请参考“或”中为我提供的步骤@Juha也许你应该相应地更新你的答案。我犯了与L先生相同的错误,也许你应该编辑你的答案来对此感到温暖。相关问题在2015年3月被标记为关闭并解决,因此现在简单的重新安装就足够了。我试图构建git,但我发现“Tlsh缺失”。2.8.3和2.12现在,我注意到高级命令与mingw/gitbash的一些区别。这可能是最好的解决方案。似乎巴邦团队对(至少)git的更新过程进行了严格的控制。我的意思是,得了吧…当前的git版本是2.17.0,目前附带了2.1。我支持这个-契约更新git在最新的babun上不起作用。WSL上的1.2.0 Ubuntu 18.04似乎运行正常。。。在Windows安装的IntelliJ中使用WSL的git有点棘手,但它是可以做到的:-)对于我来说,babun的
    更新.bat是必要的,但还不够。我还需要
    pact invalidate&&pact update git
    (还有一些耐心)才能让git再次运行
    » uname -a
    CYGWIN_NT-10.0-WOW a5044 3.0.7(0.338/5/3) 2019-04-30 18:04 i686 Cygwin
    » git version
    git version 2.21.0