views:

168

answers:

4

What is the best version conrtol application? I'll setup it to my Windows 7. I have installed WAMP. So it could be eider Windows 7 application or PHP application. And my purpose is to manage / version-control PHP files only.

Thanks in advance!!!

+2  A: 

I am happy on Windows 7 with Subversion with TortoiseSVN as Client. VisualSVN Server is a nice, point-and-click solution to setting up the Server with very little hassle.

If you're running 64 bit Windows, be sure to install the 32 bit and 64 bit versions of Tortoise alongside, so you get Shell integration from within 32 bit IDEs.

Pekka
+6  A: 

For windows, it's hard to beat the simplicity of SVN via Tortoise SVN. That being said, I much prefer the power, speed, model, and flexibility of git. git runs on windows, and would be well worth the effort it takes to learn.

Understanding the brilliance behind git will pay huge dividends to you as a software engineer.

15 second Git tutorial Edit: It was 17 seconds.

Git started:

cd c:\dev\project
git init
git add .
git commit -m "Initial Commit"

Edit edit edit:

git add file1.txt
git add file2.txt
git commit -m "Fixed up thingy."

Look at status:

git status

Look at history:

git log
gahooa
git is harder than mathematical statistics two
ilhan
yes it will pay huge dividents to me as a sofwre developer but i wasn't able to figureout what to do after i installed git. it is like programing web pages in C in DOS envirement. Not a user friendly. Windows or DOS?
ilhan
Wait... you're complaining about git being hard while at the same time trying to program??? What's wrong with that picture. Besides, git has about the simplest model out there internally, and once you understand it, git becomes vastly clear. As I said, svn is easy. Git is worth it.
gahooa
Git. Initialize a Repo on your computer. Then put files in it. Commit to it, repeat.
Chacha102
Go listen to the Randal Schwartz talk on using Git.
Chacha102
Also, there is like a gigantically large wiki about git on StackOverflow. It took me a little, but I got it.
Chacha102
How I can see the differences I made in the file?
ilhan
And where I can find the old versions?
ilhan
Documentation and `git help` should help with that...
Chacha102
@ilhan: go read the docs for git. Then try it. Then read them again, then come back here.
gahooa
+2  A: 

All 3 are great - experiment to see what's best for you. For repository hosting, check out Github, Bitbucket (Mercurial) and Beanstalk (svn).

Veeti
+2  A: 

My preference is perforce, free for home use (up to 2 users), and trivial to setup if your code repository is going to be on the same machine that you write code on. Only a little bit harder if it isn't.

It scales well enough that it's used in a lot of professional coding houses. And it integrates with VisualStudio (I'm told, I use the command line version because I'm an old timer).

John Knoeller
May I ask why you prefer to use a commercial product, when there are excellent free products?
troelskn