我正在使用git版本1.9.5.msysgit.0的Windows 8计算机上推送到HTTPS上托管的TFS Git存储库.
当我推送任何文本文件时,一切都很好.但推送一个.jpg文件git挂起POST git-recieve-pack,输出如下:
$ git push -v
Pushing to https://tfs.ourcompanyn.com/tfs/DefaultCollection/Prototypes/_git/TestProject
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 59.76 KiB | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
POST git-receive-pack (61329 bytes)
Run Code Online (Sandbox Code Playgroud)
它保持这样,不再改变
我们使用wincred作为credentialhelper,我检查了身份验证的工作原理.我也可以推送代码.只是一些.jpeg文件会产生这个问题.
CMYK/RGB有问题吗?https与git和tfs有问题吗?
编辑:到目前为止,我试图增加http.postbuffer提到在这个岗位.
git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud) touch test
git add test
git commit -m "test"
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
这很有效.该文件已上载到存储库.
rm test
cp -R ../website ./website
git rm test
git add website/
git commit -m "Initial"
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
这没有给出任何输出,似乎没有对存储库做任何事情.测试文件仍存在于存储库中.
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?
在客户端和服务器上重新创建分支,没有成功.当内部只有一个文件时,它可以工作,但它不会将网站文件夹推送到服务器.
这是我能看到的唯一奇怪的事情; POST git-receive-pack (chunked)
我正在尝试通过 Github 上的源代码管理上传一个相对较大的虚幻引擎 4 项目。
它上传完全,当它达到 100% 时,它失败并给出以下错误:
Writing objects: 100% (8901/8901), 11.30 GiB | 33.67 MiB/s
Writing objects: 100% (8901/8901), 11.32 GiB | 31.25 MiB/s, done.
Total 8901 (delta 632), reused 8579 (delta 403)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 Send failure: Connection was reset
Everything up-to-date
(The error was parsed as 4: The remote disconnected. Check your Internet connection and try again.)
Run Code Online (Sandbox Code Playgroud)
我的连接没问题,因为我试了好几次,总是100%失败。
我用 Sourcetree …
push github git-push github-for-windows atlassian-sourcetree