我一直在使用git与两个人的团队一起提交到我的存储库

时间:2017-12-07 03:59:31

标签: git

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

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

如果有人能帮助我,那就太棒了

1 个答案:

答案 0 :(得分:1)

为避免对其他软件造成任何干扰,请使用Git推送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之前设置为,则将从默认的Windows上选择Git中的查找。

然后输入' bash',在您的(量身定制的)CMD shell中获取shell会话。
然后再试一次git push

OP Murtaza Haji提及in the comments

  

无论如何,我重新启动电脑后问题得以解决。