【问题标题】:i have been committing to my repository along with a team of two people using git我和一个使用 git 的两个人团队一直致力于我的存储库
【发布时间】:2019-05-30 19:43:48
【问题描述】:

两周后我没有遇到任何问题,但我现在收到此错误

murta@DESKTOP-Q8IFK52 MINGW64 ~/Code_Dump/homunculi (haji13)
$ git pull origin develop
fatal: FileNotFoundException encountered.
Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its 
dependencies. The system cannot find the file specified.
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 69 (delta 35), reused 32 (delta 10)
error: unable to create temporary file: Invalid argument
fatal: failed to write object
fatal: unpack-objects failed

我还检查了我的所有分支都存在

murta@DESKTOP-Q8IFK52 MINGW64 ~/Code_Dump/homunculi (master)
$ git branch
develop
haji10
haji11
haji12
haji13
haji5
haji6
haji7
haji8
haji9
* master

也试过了

 git push --set-upstream origin haji13
 fatal: FileNotFoundException encountered.
 Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, 
 Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its 
 dependencies. The system cannot find the file specified.
 Total 0 (delta 0), reused 0 (delta 0)
 remote:
 remote: Create pull request for haji13:
 remote:   https://bitbucket.org/murtazahaji/homunculi/pull-requests/new?
 source=haji13&t=1
 remote:
 To https://bitbucket.org/murtazahaji/homunculi.git
 * [new branch]      haji13 -> haji13
 Branch haji13 set up to track remote branch haji13 from origin

如果有人可以帮助我,那就太好了

【问题讨论】:

    标签: git


    【解决方案1】:

    为避免与其他软件发生任何干扰,请在您的 Git 推送中使用您设置简化 PATH 的 CMD shell:

    set G=c:\path\to\latest\git
    set PATH=%G%\bin;%G%\usr\bin;%G%\mingw64\bin
    set PATH=%PATH%;C:\windows\system32;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\
    

    如果GH(Git 安装文件夹)设置在之前Windows\System32,则从 Git 中查找将优先于默认的 Windows 查找。

    然后键入“bash”,以在您的(定制的)CMD shell 中获取 shell 会话。
    然后再试一次你的git push

    OP Murtaza Haji 提到了in the comments

    不管怎样,重启电脑后问题就解决了。

    【讨论】:

    • 我使用 git shell 进行提交。重新启动电脑后,任何方式的问题都得到了解决。不确定是什么导致了错误。无论如何谢谢@VonC​​pan>
    • @MurtazaHaji 太棒了!我已将您的评论包含在答案中以提高知名度。
    猜你喜欢
    • 2011-12-23
    • 2014-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-01
    • 2019-05-06
    相关资源
    最近更新 更多