The first programs you write will probably not be very impressive. You'll make lots of mistakes and you'll never want to revisit the past.
But soon enough, you'll be writing large, complex programs. Maybe you'll delete some stuff now that you want to bring back later. Or maybe you'll bring in a friend to help, and want to gracefully add their changes to your program while you continue to work on your parts.
That's where version control comes in, and it's a skill that any employer will expect you to have mastered. It's also extremely useful for anyone working on anything that is saved in pieces - from a computer program to a recipe to a novel.
What is Git?
Git is a version control system developed by Linus Torvalds in 2005 (the same guy who wrote Linux). Git helps developers keep track of the state of their code and allows collaboration on a codebase. We'll go over the main components a little later.
If you want to follow along, you'll have to have Git installed on your computer. Open up a terminal and type git. If you see a list of possible commands, you're good to go!
Many computers come with Git already installed. If you need to install, you can follow the instructions here for your computer.
How to use It?
Jut dropping a YouTube video below in Hindi to make you understand it easily