WTF is version control thing ? Learn Git — Beginner Edition (Part 1)
Tags: android, github, git
Published: 2023-09-10 19:51:05

🤔WTF is “version control” ? Why should I care? Why should I learn it? Well, let me break it down for you in a way that’ll make you smile! 😄 Before going into deep I have a simple question for you.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5pd52g13asgqzqpjpv3m.gif)

Imagine you’re working on a super important project, and you’re saving it on your computer. Now, what if your computer decides to go on a vacation without telling you and takes your project with it? Disaster, right? 😱


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jqgw1jgp9z2gjquf8g7i.gif)

But fear not, because that’s where version control swoops in like a code superhero 🦸‍♂️ to save your day! 🌟

**Version control** is like a magical time machine for your computer files. 🕰️It helps you to keep track of changes you make to your file over time.
With version control, Every change made to the code base is tracked. This allows software developers to see the entire history of who changed what at any given time 🕰️ It keeps track of all the changes you make to your project, like when you add new stuff or fix mistakes.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0no5hdr90hzodacse5hx.gif)

And here’s the cool part! Imagine you’re working on a project, and you want to try out some new ideas. With version control, every time you make a change, it’s saved as a snapshot. This way, if you mess something up or want to go back to a previous version, you can easily do that.

But wait, there’s more! You can also share your project with your friends and work on it together, without stepping on each other’s toes. It’s like painting a beautiful mural with your buddies without accidentally splattering paint on each other. 🎨

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r6inkv3wxmm8jum3tzsm.gif)

You can find out more from : [What Is Version Control?](https://about.gitlab.com/topics/version-control/)

---


Now let’s talk about most famous version control system GIT.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wk58g5rggzp1u2owcrfy.png)

One of the best advice I got from internet is, No matter what you are working as solo developer or team player, working in startup or in big tech company

## GET GOOD AT GIT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kl7t2gzlh4go70779dg7.png)

- Git was created by LINUS TORVALDS in 2005. There is no doubt he is a fucking genius from all of us.
- Git is a popular choice as a version control system at any level company/solopreneur.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nc1yf624qufsf3hzdh4f.png)

ENOUGHHHHH!!! I know Git is awesome blah blah blahhh! show me how it help me ?

**Any benefits from using Git?**

> Absolutely Yes

- Git allows you to track changes to your codebase over time.
- Multiple developer can work on the same project simultaneously at same time
- Developers can create separate branches to work on new features or fixes.
- Git maintain complete history of your changes
- Developer has own copy of the repository, means you can work offline as well

And there are lots of other benefits apart from these.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x8cthlal3d0zs41zcc35.png)

I think that’s enough information. I’ll get back to you soon with part 2 where you will understand and learn simple but effective git commands.