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
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With