Tip: avoiding net overhead using git over sshfs
- From
Felipe Carvalho Oliveira <felipekde@gmail.com>
- Date
- Oct 23, 2008, 01:26 UTC
- Message-ID
- <a2075f4c0810221826w511a3b87r6fea4fb0dee24e1f@mail.gmail.com>
Use git over sshfs is not so good, but is an option for people that don't have shell acess to the server/hosting like me.
# mounting sshfs -o workaround=rename <user>@<host>:/home/<user>/ <mount_point> cd <the_directory_of_your_project>
# we will move the .git directory to the local filesystem mv .git ~/.my_project_git # and create a symlink to the local .git ln -s ~/.my_project_git .git
Done!
Now you can open gitk instantly ;-) and don't need to have the entire .git thing on a remote filesystem.
Felipe (from Brazil, my english skills aren't so good :-)