Is there a git personal server for sharing changes between machines?
Is there a way to run a no frills git server just so I work on different machines at home?
The main reason for this is that my WiFi network is slow and I'd prefer to work locally and disconnected.
I assume there's something similar to the Mercurial command hg开发者_JAVA技巧 serve.
There's a minimalist git daemon
server. (See here for basic info, and the man page for more.)
A good guide to the different methods is http://www.jedi.be/blog/2009/05/06/8-ways-to-share-your-git-repository/
My preferred method is to use the plain ssh server.
the easiest way is just to share disks/directories using the stand OS file sharing.
Otherwise you can run a git server git-daemon
or export via http see Git documentation for public repository
As per the comments, this is an XY Problem.
Mat's answer tells you about a minimalist git daemon server. As do others.
I'm telling you that this is probably entirely unnecessary.
If your laptop and your desktop can share a filesystem (such as via NFS, CIFS or similar), you can clone
the repository like this:
git clone /path/to/repository
If your laptop and your desktop can't share a filesystem but your desktop is running an SSH service, you can clone your repository like this:
git clone ssh://[user@]server/path/to/repository
You may even be able to use other sharing services such as FTP or HTTP, as per the manual page. Setting up a dedicated git server is usually an unnecessary overhead.
Hope this helps.
I am using gitolite, I find it easy enough.
Here is the Official documentation and my experience.
精彩评论