sshfsを使用してSSH経由でファイルシステムをマウントし、gitリポジトリコラボレーションのリモートストレージとして使用しています。
Mac OSX10.6.6からRHEL3サーバー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
リポジトリを作成し、ローカルで操作してから、サーバーにプッシュバックする方法は次のとおりです。
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/'
奇妙なことに、リポジトリへの小さな編集は正常にプッシュされますが、複数の新しいファイルまたは大量の編集を伴う大きなコミットは機能しません。
私たちはsshfsとMacFuseの初心者ですが、中級のgitユーザーです。
何かアイデアや提案はありますか?