If I see in our real world if we have made a mistake we cannot go back in the past to change our mistakes or to our previous lifestyle,but in Technical World we have this kind of version control that helps us to go back to our previous project so that we can make it correct and that is Distributed Version Control System which is known as Git.
In technical world Git and GitHub play huge role!
Let's See few descriptions about Git:
Git is one of the most popular Distributed Version Control System and it was created by 'Linus Torvalds' in 2005.
It is used for:
Tracking code changes
Tracking who made changes
Coding Collaboration
Why Git?
Over 70% of developers use Git!
Developers can work together from anywhere in the world
Developers can see the full history of the projects
Developers can revert to earlier versions of a project
Note:-Git is not the same as GitHub.GitHub makes tools that use Git. GitHub is the largest host of source code in the world and has been owned by Microsoft since 2018.
Working Stages of Git
Git keeps track of our content and helps to save our codes.When we are using Git the code goes via three stages such as working directory,staging area and repository.
Working Directory: The working directory is where you do all your work like editing,creating,organizing and deleting files.
Staging area:The staging area is where you can track any changes you made in the working directory.
Repository:The repository is where Git permanently stores changes that you made.
Avanatages of Git
Git allows developers to maintain large number of separate code branches.
Git saves the code to the cloud,therefore serving as a backup of your local copy.
Better Collaboration and improved team productivity.
Open-Source and free.
Conclusion
That's a wrap!! You 've made it to the end of this blog! You can follow me on twitter for such contents. Twitter ID:Shristy_29 Dev.to ID:Shristy_29