Why Use Git?
Git is one of many version control system and the most preferable one by many people.
1. Easy Distribution of your Project
Thats right, if you dont know anything about Version Control System this might be how you are sharing or distributing the latest version of your project with your friends or team members.
So, thats why you should use Git right now. Cause your way is frustating and it sucks.
You can use Git in your repository/project and just upload it to the version control repository hosting service such as Github or BitBucket.
Then you can share the link of your project to your friends or team so they can now clone(download) your repository into their local system.
Sounds somewhat similar, yes? Just like you uploading your zipped project into Google Drive and sharing the sharable link. But trust me its not the same.
You dont have to go through all the hassle and trouble like zipping your project everytime and getting the sharable link everytime.
You just need to type some few easy commands and you have pushed/uploaded your latest version of the project into Github or Bitbucket.
Simillarly your teammates also just need to write a git command to pull/download this latest version to their local sytem.
2. Resolve conflicts
If you have a team working on a same project, then there can come many cases where more than one person are editing the same file.
For example you just created a function in file something.js and one of your teammate came and created another function with the same name or he changed statement inside your function. After few days only you came to know about these changes and now you are sitting their confused who made the changes and when.
Using Git will resolves such issues. It gives you features where you can keep the log/track of your changes from which you can easily know when, where and who made the changes. If you are the owner of the repository you will have the authority to merge the changes your teammate made or just discard them.
3. You can revert and go back to older version of your code.
Indeed, Git is good. It lets you jump to any version of your project easily with out any problems at all.
4. Branches for your features.
No matter how big or small the changes is you just dont want to mess up the present stable code. So with Git you can just create a new feature branch and start working in it without changing your old code which lies in master branch.
Its just like creating a copy of you project and editing on that copied version without touching or editing the original project.
5. You will end up needing Git eventually.
There might be no any software companies out there who will not be using any version control system. So, its better to learn git before being hired to a company and have more chance to get hired.