Git is Lit which makes you hit...Boom in the Project Environment.

Git is Lit which makes you hit...Boom in the Project Environment.

Well I know my title sounds kind of weird but it's actually relatable and effective in programming world the way it sounds. Before proceeding in programmer's world about how Git works and sparks in programmer's life. I want to share some scenario between Real world and Git world .

Real World Vs Git World

In Real world if we did some mistakes at work so basically we follow principle let bygones be bygones and start working ahead by keeping in mind that will not repeat this mistakes cause there is no path to go back, But in technical world this can actually happen with the help of Git. It is the only thing preventing you from losing all your homework and project work if you make a mistake or a system shuts down unexpectedly. So learnt to use a Git Version Control System to manage our own files. Now the question arises,

What is Git?

Git is a DevOps tool used for source code management. It is free and open-source distributed version control system which is created by Linus Torvalds in 2005.

What is Distributed Version Control System?

In Distributed Version Control System, Systems do not necessarily rely on a central server to store all the versions of a project file. Here, every contributer has a local copy of the main repository i.e. everyone maintains a local repository of their own which contains all the files and metadata present in the main repository.

How Git Works ?

  • Working tree: Working tree contains the files that you are currently working on, when you open the file for a project that is manage as a git repository, you gain access to the working tree.
  • Staging area: The Staging area is like backstage in a theatre i.e. this area contains all the new/changed code which is ready to be join in the next commit
  • Repository: Git repository contains all the files of the project. It's like your project database. It can be remote or server base.

Git Vs Github

Git

  • Git is a software.
  • it is a command- line tool.
  • Git is installed locally on the system .
  • Git is maintained by linux.

Github

  • Github is a service.
  • Github is a graphical user interface.
  • Github is hosted on the on the web.
  • Github is maintained by microsoft.

Benefits of Git

  1. Git allows developers to maintain large number of separate code branches

  2. Git saves the code to the cloud, therefore serving as a backup of your local copy.

  3. Better Collaboration and improved in team productivity.

  4. Open Source and Free.

Conclusion

That's a wrap! You've made it to the end of the blog! link mentioned below for other blog about the git command .

https://dev.to/ojhanidhi036/essential-git-commands-524l-temp-slug-5120577/edit