Index Animi Mei
Google


Search WWW Search Index Animi Mei
  

2008 Jan 07 (Mon)

Using Git over EncFS and SSHFS
It was a little bit troublesome for me to get Git working on SSHFS mostly. I was getting errors from git such as "Failed to write" whenever I tried to push to the remote repository. Fortunately, after a bit of googling I found this e-mail, which reminded me I should read the man pages more often. Anyway, this is the sequence of commands I ended up with:
sshfs -o idmap=user -o uid=`id -u` -o gid=`id -g` -o workaround=rename REMOTE_USER@REMOTE_HOST:REMOTE_PATH LOCAL_PATH_RAW
encfs LOCAL_PATH_RAW LOCAL_PATH
cd LOCAL_PATH
git clone --bare --no-hardlinks ~/repo.git repo.git

[all posts in /tech/]  [permanent link]