Introduction to Git and GitHub
First of All, why do we need Git?
Ok Here we go, Let's assume you and I are working on a project that needs to be created
you and I are not present in the same place so how can we share our code between you and me
If I start working on my part I am planning to do it on the day by day basis let's say I am completed 50% of my work I will save all my changes
And then I will stuck on something it will create a mess on the whole project that I am working on I want to rollback to the 50% of work that I completed how can I do that
we can't use simply press CTRL Z on that it does not bring back to 50% of that project
With the help of GIT
Git is a version control system that enables collaborators to share code and track changes made to it, regardless of where they are.
For instance, suppose you and I are working on a project remotely. In that case, we can use Git to store and manage our codebase, which allows us to work on our respective parts without interfering with each other's work.
With Git, you can work on your part of the project on a day-by-day basis and save your changes as you go. If you run into an issue that creates problems for the entire project, Git allows you to roll back to a previous state quickly. For instance, if you complete 50% of your work, and then something goes wrong, you can use Git to restore the project to the 50% state, rather than trying to undo changes manually (which can be a nightmare).
When we use Git to save our work on our local computers, there is a risk that we may lose our code if our local computer crashes or is lost or stolen. However, we can minimize this risk by backing up our work regularly, such as by storing copies of our code on external hard drives or cloud storage services.
GitHub provides an excellent solution to this problem because it offers an online platform where we can host our code for free. When we use GitHub to host our code, we can access it from any device with an internet connection, and we don't have to worry about losing our work if our local computer crashes or is lost or stolen. GitHub uses Git as its underlying version control system, which means we can use all the features of Git to manage our code on GitHub.
Conclusion:
Git is an essential tool for collaborating on projects, particularly when working remotely or with distributed teams. It enables developers to share code, track changes, and roll back to previous versions quickly and efficiently.
Git provides an efficient way to manage code versioning and reduce the risks associated with losing work due to computer crashes or theft.
By using platforms like GitHub, developers can easily host their code online and access it from any device with an internet connection, providing an excellent solution to the problem of managing code across different locations and devices.
Overall, Git has become an indispensable tool for developers looking to streamline their workflow and improve their productivity.
Get Involved:
Try using Git with visualizing - Git Playground
Official Page For Git - Git download
Visit GitHub - GitHub
Subscribe to my newsletter
Read articles from karthick H directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
karthick H
karthick H
I Like to Learn and share new things to you guys! I will update my Tech Stacks over Time