Share Git without a remote server

I am working on a school project with two other friends. I need an easy way to manage the source code, and I tried Git. So far, Git looks great (with version control, etc.). How can I share it with my teammates? Have I seen articles on sharing on a remote server? However, can I configure Git on my computer and they pulled me out? Or can I use a service like dropbox to share projects? Hope my question is clear. Thanks

+4
source share
6 answers

You should look at github, if you don't mind people seeing your code (you can actually pay for a private repo, though), you can create a repository for free, this is a great site and resources. >

If you prefer to be completely private and do not want to pay, look at gitosis.

But I would use github it great

+3
source

Or use an instant git daemon, for example: on a server (your workstation)

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

on the receiving side (another workstation)

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

Git -daemon is a really simple TCP git daemon that usually listens on the "DEFAULT_GIT_PORT" port aka 9418. It waits for a connection requesting a service and will service this service if it is enabled.

He checks that the directory has the magic file "git-daemon-export-ok" and he refuses to export any git directory that was not explicitly marked for export in this way (unless -export -all). If you pass some directory paths as arguments to daemon git, you can further limit the suggestions to a whitelist consisting of these.

By default, only the package download service is enabled, which serves git fetch -pack and git ls-remote clients, which are called from git fetch, git pull and git clone.

+8
source

Please note that a public account is not required. You can share between two computers using SSH, as with a vendor like Github. The following is one possible workflow:

There are many others that are easy to find on your favorite search engine.

+3
source

If you don't mind having everything publicly on Github , this is a great place to start.

+2
source

Sign up for a free account on Github

We use it at work for 30 different projects for many developers, and I also use my personal account to exchange codes with friends. It works great!

0
source

All other suggestions (GitHub, ssh to workstation, git: protocol) are good.

You can also share using a USB drive. Create a bare repository on this disk and transfer it back and forth. Remove, drain and press when you have a disk. This is not a problem if the drive is lost because the repository is created on all workstations. Obviously, this depends on the fact that the team at least occasionally settles.

I don’t know if Dropbox or other hosting will work.

0
source

Source: https://habr.com/ru/post/1346824/


All Articles