Three of us in the office are on Mac laptops and we use git day to day.
We want to share a repo with each other without setting up a central repo.
Dave pushes to Sally who pushes to Chandu.
Chandu can pull from Sally and Dave.
Is there a good way to do this?
It is perfectly compatible with the "Decentralized" notion of a DVCS like Git, and very easy to setup (all you need is sharing paths between the repos)
The only issues to address are:
Just pull from each other :)
Instead of pushing, just make a pull request (verbally, on IRC, or however you want); ask people to pull from you.
What you need to do is to setup a bare remote git repo. Check instructions here.
http://toolmantim.com/thoughts/setting_up_a_new_remote_git_repository
If you want to be able to push to/pull from each other while offsite, you're going to need some kind of VPN so your laptops can talk to each other. It might be easier to set up a remote repository (or a set of them, one each) on a server somewhere, because that deals with the laptops being offline when you want to merge.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.