Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to actually use a source control system?

So I get that most of you are frowning at me for not currently using any source control. I want to, I really do, now that I've spent some time reading the questions / answers here. I am a hobby programmer and really don't do much more than tinker, but I've been bitten a couple of times now not having the 'time machine' handy...

I still have to decide which product I'll go with, but that's not relevant to this question.

I'm really struggling with the flow of files under source control, so much so I'm not even sure how to pose the question sensibly.

Currently I have a directory hierarchy where all my PHP files live in a Linux Environment. I edit them there and can hit refresh on my browser to see what happens.

As I understand it, my files now live in a different place. When I want to edit, I check it out and edit away. But what is my substitute for F5? How do I test it? Do I have to check it back in, then hit F5? I admit to a good bit of trial and error in my work. I suspect I'm going to get tired of checking in and out real quick for the frequent small changes I tend to make. I have to be missing something, right?

Can anyone step me through where everything lives and how I test along the way, while keeping true to the goal of having a 'time machine' handy?

like image 773
Humpton Avatar asked Sep 15 '08 21:09

Humpton


People also ask

How did you manage source control?

Starting with the basics, choose a source control system. Keep your source code in source control (but not the files generated / compiled from it). Ensure the working file is from the latest version of the source file. Only check-out the file being worked upon.

How do I use source control in GitHub?

In the Activity Bar, click the Source Control view. To stage your changes, click + next to the file you've changed, or next to Changes if you've changed multiple files and you want to stage them all. Type a commit message describing the change you've made.


1 Answers

Eric Sink has a great series of posts on source control basics. His company (Sourcegear) makes a source control tool called Vault, but the how-to is generally pretty system agnostic.

like image 165
Chris Upchurch Avatar answered Oct 19 '22 02:10

Chris Upchurch