I have two Macs that I develop from, one an iMac and one a MacBook Air. I am starting to work more on both machines and I would like to easily share the code between the two. 

My iMac is always on, and usually I am only coding at home anyways, so it depends on where I want to be if I am coding on the MacBook or iMac. 

When setting up a new project in Xcode 4, it asks you if you want to create a git repository for your project. If I say yes (on my iMac) is there a way I can connect to this repo from my MacBook? 

If so, how is this done? If I add a location, it will see my iMac, but im not sure what to set up after that. And do I have to do this for each project? 

EDIT: When I try to add the remote repository in Xcode, while it says Host Reachable, I eventually get an error that access to the Repository is denied.