Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Collaborate using Git without Remote Server

Tags:

git

I am working on a school project with another two friends. I want an easy way for us to manage source control and I tried out Git. While Git looks great (with version control and stuff). How do I share it with my teammates? I have seen articles about sharing on a remote server? However, can I just set up Git on my computer and they pull from me? Or can I use service like dropbox to share projects? I hope my question is clear. Thanks

like image 555
Codier Avatar asked Dec 05 '22 22:12

Codier


2 Answers

Or use an instant git daemon like so: on the 'server' (your workstation)

git daemon --export-all /home/myname/myrepo

on the receiving end (someone else's workstation)

git clone git://host-or-ip/home/myname/myrepo /home/othername/cloned

Git-daemon is a really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT" aka 9418. It waits for a connection asking for a service, and will serve that service if it is enabled.

It verifies that the directory has the magic file "git-daemon-export-ok", and it will refuse to export any git directory that hasn’t explicitly been marked for export this way (unless the --export-all parameter is specified). If you pass some directory paths as git daemon arguments, you can further restrict the offers to a whitelist comprising of those.

By default, only upload-pack service is enabled, which serves git fetch-pack and git ls-remote clients, which are invoked from git fetch, git pull, and git clone.

like image 79
sehe Avatar answered Dec 30 '22 21:12

sehe


You should look at github if you don't mind people seeing your code (you can actually pay for private repo though), you can set up a repository for free, it's an excellent site and resources are plently.

If you prefer to be completely private and don't want to pay look at gitosis.

But i would use github it's great

like image 31
rogermushroom Avatar answered Dec 30 '22 23:12

rogermushroom