Git Cheat Sheet
Q.1 What is the difference between Git and GitHub?
Git is a version control system that allows developers to track changes to their code locally, while GitHub is a web-based platform that provides hosting for Git repositories and facilitates collaboration among developers.
Q.2 Why is it called Git?
The name “git” was given by Linus Torvalds when he wrote the very first version.
Q.3 How to pull all data from git?
git fetch –all command retrieves metadata on each change made to all the branches in a repository. The git pull –all command downloads all of the changes made across all branches to your local machine
Q.4 Where is Git data stored?
Git keeps things organized with two main data structures known as the object store and the index.All of this repository data is stored at the root of your working directory in a hidden subdirectory named . git. It’s like a secret club for your code.
Git Cheat Sheet
Git Cheat Sheet is a comprehensive quick guide for learning Git concepts, from very basic to advanced levels. By this Git Cheat Sheet, our aim is to provide a handy reference tool for both beginners and experienced developers/DevOps engineers. This Git Cheat Sheet not only makes it easier for newcomers to get started but also serves as a refresher for experienced professionals.
In this Git Cheat Sheet, we’ve covered all the basics to advanced Git commands that the developers required during the development and deployment process. Moreover, it is well-structured and categorized according to different use cases. It includes Git and GitHub, Git download, Git Configuration & Setup, Git commands, Git bash, Creating and Getting Git Projects, Git Snapshots, Branching and Merging in Git, Sharing and Updating in Git, Git Comparison, Managing History in Git, and more.