Take the 2-minute tour ×  I have my git repository on a linux
located on the company server. I ssh into my linux machine and
edit files there.   This method is great until I have a good
connection to the server. in case of slow connection or even not
having a connection I can't access my work and I am not able to
do the job.  Potential Solution  Maybe I can copy my files from
linux server to my local machine disk and then run an script
that listen to changes made in my local files and mirror it to
my remote server.    • I am using Git, any solution should cover
git files too.   • In case I'm losing my connection I should be
able to continue my work on local files and as soon as
connection established script should mirror my changes to remote
server.   • My machine runs Mac OSX Lion. share|improve this
question Is there a reason you don't just keep a clone of the
git repo locally and then git push to the Linux machine? – 
JodieC Jun 11 '12 at 3:44 I want to have a mirror of files and
git info locally. I don't