我一直在使用git与两个人一起致力于存储库 [英] i have been committing to my repository along with a team of two people using git
问题描述
2周后我没有问题,但
突然发现这个错误
murta @ DESKTOP-Q8IFK52 MINGW64 〜/ Code_Dump / homunculi(haji13)
$ git pull origin开发
致命错误:遇到FileNotFoundException。
无法加载文件或程序集'System.Net.Http,版本= 4.0.0.0,
Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其
依赖项之一。该系统找不到指定的文件。
remote:计数对象:69,完成。
remote:压缩对象:100%(56/56),完成。
remote:合计69(delta 35),重用32(delta 10)
错误:无法创建临时文件:无效参数
致命:未能写入对象
致命: - 对象失败
我还查看了我的分行全部存在
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。
无法加载文件或程序集'System.Net.Http,版本= 4.0.0.0,
Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其
依赖项之一。该系统找不到指定的文件。
共0(delta 0),重用0(delta 0)
remote:
remote:为haji13创建请求:
remote:https://bitbucket.org/murtazahaji / homunculi /拉请求/新?
source = haji13& t = 1
remote:
到https://bitbucket.org/murtazahaji/homunculi.git
* [new branch] haji13 - > haji13
如果任何人都可以帮助我的话,分支机构haji13设置来跟踪远程分支haji13的来源
它会很好
为避免任何干扰其他软件,请为您的Git推送一个CMD shell,在其中设置简化PATH:
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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $ b 如果 GH
(Git安装文件夹)在 Windows \ System32 $ c之前设置
$ b $ p>然后输入' bash
' ,在你的(定制的)CMD shell中获得一个shell会话。
然后重试你的 git push
。
无论如何,重新启动我的电脑后问题已解决。
I had no issues since 2weeks but
Suddenly im getting this error now
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
i also checked out my branches all exist
murta@DESKTOP-Q8IFK52 MINGW64 ~/Code_Dump/homunculi (master)
$ git branch
develop
haji10
haji11
haji12
haji13
haji5
haji6
haji7
haji8
haji9
* master
tried this as well
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
if anyone could help me it would be great
解决方案 To avoid any interference with another software, use for your Git push a CMD shell where you set a simplified PATH:
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\
If GH
(the Git installation folder) is set before Windows\System32
, the find from Git will be chosen over the default Windows one.
Then type 'bash
', to get a shell session within your (tailored) CMD shell.
And try again your git push
.
The OP Murtaza Haji mentions in the comments:
Anyway, the issue was resolved after I restarted my PC.
这篇关于我一直在使用git与两个人一起致力于存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!