DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for GIT Basics / Cheatsheet
Andre Reus
Andre Reus

Posted on

GIT Basics / Cheatsheet

What is GIT?

Best short and also official description:

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Benefits / Comparison:

Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.


Download and install it from

GIT Commands

Basic Commands

git status // Show the current status
git init // Initialize project folder with GIT
git add // Add changes to the stage
git commit // Commit changes in the stage to the history / log
git log // Show the commit history
Enter fullscreen mode Exit fullscreen mode

GIT Help

git help // Help Overview
git help -a // GIT Commands
git help -g // GIT Guides
Enter fullscreen mode Exit fullscreen mode

GIT Branching visually illustrated

GIT Branching

Branching Commands

git branch // Create a branch
git checkout (in future "git switch") // Switch to a branch
git merge // Merge a branch into an other one
Enter fullscreen mode Exit fullscreen mode

Playground for GIT Commands:

GIT Client (GUI)

GIT Client

Some good free GIT Clients (GUIs) are:

Optional useful Diff Tool: Beyond Compare

Collaboration (or cloud backup)

Visually illustrated

GIT Collaboration

Hosting services

Collaboration Commands

git clone // Download a repository to your PC
git fetch // Download the latest content from the server
git pull // Download the latest content from the server and merge it with your local content
git push // Upload your content to the server
Enter fullscreen mode Exit fullscreen mode

Useful Links

Top comments (0)

DEV has this feature:


Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. 🛠