Using source control without having a host
I will work 开发者_C百科with 2 developers on one application, and we want to use subversion control application to avoid conflicts.
I don't have a server with a static IP, is there anyway to setup a virtual host on my machine ans install the source control so that all the team can update the source code.
Thanks!
Just install the svn server on one of the pc:s. If you are running windows then get something like VisualSVN server, and if you are running some Linux dist then just install it.
The other guys need to know you current ip, and then they can access the server when you are on the same lan.
But at the end of the day, if you don't have a fixed ip and a real server then it is probably easier to use a distributed system like git over ssh.
As said before, you can also consider using a distributed version control system, such as GIT or Mercurial. This way, every user will have a local copy of the repository. More about DVCS here.
Yes, but that means if your machine is unavailable then they're a bit stuck. If you're going to go down the route of doing it on your box you don't necessarily need to have a VM running, you can just install Subversion server onto it, set up a static IP address for your machine and run it like that. They check out from and you check out from <127.0.0.1>.
Maybe look at git? It'll allow individual source control for if the main repo isn't available, and then they can push back to it your main repo.
You can use a shared filesystem (see the FAQ for supported types) and create a file repo with svnadmin
.
精彩评论