From the course: Tech Sense

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

What is source control?

What is source control?

From the course: Tech Sense

What is source control?

- Did you know we live in a science fiction future described in books and TV shows and movies? That time travel and teleportation and alternate timelines are a real thing and that computer developers use these technologies everyday? No. Well, it's true thanks to distributed version control systems like Git. Consider this scenario. You write some code and you want to make a change, but you're not sure if that change actually makes sense, so you save the original code in a file called main.js and then you make a copy of the file and call it mainV2.js and make some changes there. Then, you want to make another change but want to preserve the pasts, so you save the current file as mainV3.js effectively making a new copy and so on and so on. This is ridiculous. It makes it impossible to get any real work done and if multiple people are working on the same code base and everyone is doing this, well, it can get really confusing. Version control does away with this thanks to some fancy…

Contents