我们正在使用 sshfs 通过 SSH 安装文件系统,并将其用作 git 存储库协作的远程存储。
Mac OSX 10.6.6 到 RHEL 3 服务器 SSHFS 版本 2.2 (MacFUSE SSHFS 2.2.0)
MacFUSE 库版本:FUSE 2.7.3 / MacFUSE 2.0.3
sshfs -o workaround=rename gituser@gitserver.ourdomain.com:/path/to/directory ~/git
以下是我们如何创建我们的 repo,在本地使用它们,然后尝试推送回服务器:
cd ~/git/mypersonaluser
git init --bare --share mynewrepo.git
git clone ~/git/mypersonaluser/mynewrepo.git ~/Desktop/mynewrepo
cd ~/Desktop/mynewrepo
... make a few edits to the repo ...
git push origin master
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 20.82 KiB | 23 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0)
fatal: error when closing sha1 file: Bad file descriptor
error: unpack failed: unpack-objects abnormal exit
To /Users/joebob/git/mypersonaluser/mynewrepo.git/
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to '/Users/joebob/git/mypersonaluser/mynewrepo.git/'
奇怪的是,对 repo 的小编辑似乎成功推送,但是带有多个新文件或大量编辑的较大提交不起作用。
我们是 sshfs 和 MacFuse 新手,但是是中级 git 用户。
有什么想法或建议吗?