gitmacososx-lionstatic-ip-addresslocal-network

Git repository on a machine with a static IP


I want to have a Git repository for personal private projects.

I can host my server on my Ubuntu home computer but its IP (on the local network) is always changing so I can't reach it by SSH at any time from my Macbook. What's more, I always want to have a working copy available on my Ubuntu so that I can work on it just as on my Macbook.

Is there a way to do those two things ? (that's to say, making my Ubuntu's local (192.168.1.*) ip always the same and having the Mac directly push to the server updating the working directory ?)


Solution

  • Install DropBox on both machines, and just push to your dropbox. Faster, easier, works anywhere, and still lets you back up onto your other server.