views:

132

answers:

5

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.

+3  A: 

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

Roger
git or subversion in this case is better ? I want learn fast 1 in 2.
meotimdihia
subversion requires a server, git does not, so git in this case.
icco
which server use subverion, you can give short explain . My website's server or other server for subversion ?
meotimdihia
Whichever server you want. The main point is, you're going to have to setup that up and it requires some work and elbow grease.
Serg
@icco Subversion doesn't require a server. You can run it directly against a local (or even remote) file repository.
Matt Gibson
@Matt I think the distinction Sergio is going for is that Subversion requires a "remote" repository where commits are sent, even if that repository is actually local to your machine. Git does a better job of hiding this.
meagar
+1  A: 

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.

Daenyth
I dont want lost 7$ because i code alone
meotimdihia
A: 
Residuum
It's not true that you need to run a server to use SVN, the repository can also live on a local filesystem and be accessed directly.
Michael Borgwardt
Thanks for pointing that out, Michael.
Residuum
+1  A: 

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.

Serg
A: 

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.

Chouchenos