meotimdihia
meotimdihia

Reputation: 4299

How to use Git or Subversion?

I code all by myself, and I have 1 website . but i dont ever use subversion or github. Question is: How to develop on souce code of my website server and update it when develop complete. In this case , should use github or subversion.

Truthly , i read and using github then try to create repository but anyone can watch mycode . I dont want that.

I want 1 guide easy for very begin about this.

Upvotes: 0

Views: 624

Answers (5)

Shikiryu
Shikiryu

Reputation: 10219

Personally, I find SVN easier to learn and install than GIT (but I guess that depends on person ;) and OS - I'm on windows unfortunately)

That's why I choose some free personal host for that. I tried BeanStalk and XP-Dev. The first one, is cleaner and much more user-friendly... and offer GIT or SVn ! But you got only 1 personal project available for free. The second one is ugly but quite performant, 2 personal projects but only with SVN for free.

Upvotes: 0

delete
delete

Reputation:

SVN and GIT are two completely different types of code repository patterns. If you using GIT you don't need a central server and can create a repository locally on your machine. I recommend you get familiar with this website just to get a basic overview of what a DVCS is and how it can affect the way you code.

HgInit

The good news is that you aren't familiar with any VCS (I assume) and that means you won't get mixed up when trying to learn GIT coming from SVN.

Upvotes: 2

Residuum
Residuum

Reputation: 12064

As Roger said, you can use Git locally and do not need a server for that.

For SVN you need a central repository server, that usually does not correspond to your live webserver.

You will need a running Apache server and install SVN as an additional module for it. Once you have a subversion server running, you can then add repositories to it, normally one repository per project.

Usually you would have a local subversion installation on a development server in your local network or even (as you work alone) on your local machine, using a distinct host/port configuration for SVN, e.g. you could use localhost:80 for your development of the live website, and localhost:9999 for your SVN installation. There are several guides for installing SVN on Windows, Linux and MacOS found via google.

Both version control systems require some initial work to get it, but I personally prefer Git over SVN. Check out the Git guide on stackoverflow or the SVN book.

Upvotes: 0

Daenyth
Daenyth

Reputation: 37431

Assuming you already know the basics of how to commit/push/etc with git, which your answer suggests you do, the problem is that your repo is set to be public and not private. You can change this on the repo's admin page, assuming your github account has enough private repos left (The lowest account level that supports this is USD$7/month iirc). There are other git hosts which you can use for free that provide private repos.

Upvotes: 1

Roger
Roger

Reputation: 1082

You can use Git locally. So no need for Github. There is a video serie on www.tekpub.com about Git.

Upvotes: 3

Related Questions