Last month, I read up on the Git version control system. I actually found it difficult to understand initially, but after reading several articles on Git, watching a lot of YouTube videos, and completing my lesson on The Odin Project, I think I have a clear idea now. Here is a summary of the git commands I learned, as a cheat sheet for future use by me - and any other fellow Git-beginners out there. But before we dive into all that, let's address this obvious question;

What Exactly is Git?

Git is a free and open-source distributed version control system.

Version control systems (also known as revision control, source control, or source code management) are used to manage changes to computer programs, documents, large websites, and other collections of information. These systems provide an automatic way to track changes in projects thereby giving creators the power to view previous versions of files and directories, securely back up the project and its history, and collaborate easily and conveniently with others. They are crucial for tracking edits made by others, correcting errors, and protecting against spam and vandalism. Distributed version control (also known as distributed revision control) is a form of version control in which the complete codebase, including its full history, is mirrored on every developer's computer.

Git is accessed via a command-line program called git which lets users transform an ordinary directory into a repository (a sort of enhanced directory with the additional ability to track changes to every file and sub-directory). Here are some basic commands frequently used when running Git πŸ‘‡

Git Cheatsheet

All Git commands consist of the command-line program git followed by the name of the command, so for the full command ...

Additional Resources

  1. Learn Enough Git to be Dangerous.

  2. Corey Schafer's Git Tutorial for Beginners on Youtube.

  3. Fireship's Youtube video on Git It? How to use Git and Github

Hey, thanks for reading! πŸ‘‹ πŸ‘‹