Binary LabsBinaryLabs
Home
ToolsBlog
Schedule a Call

Services.

Explore our current software services, each with a dedicated detail page.

Web Application DevelopmentCustom Software DevelopmentE-commerce Development

Software Development

Web Application Development

Custom Software Development

E-commerce Development

MVP Development

Enterprise Software Development

Grow with AI

AI Integration

RAG Systems

AI Chatbots

WhatsApp Automation

Mobile App Development

Mobile App Development

iOS App Development

Android App Development

Native App Development

Hybrid App Development

Backend & Cloud

Back-End Development

Serverless

API & Integrations

Frontend & Design

Front-End Development

UI/UX Design

UX Specialist

UI Visual Design

Web Design

Specialized Tech

SaaS Development

All Services

Our Products

Solar CRM

Binary Labs

Solar CRM

The ultimate end-to-end management platform for solar installers. Streamline your sales pipeline, automate site surveys, and optimize project installations with data-driven insights.

Explore Now
HR Labs

Binary Labs

HR Labs

Run your complete HR workflow in one place. Automate offer letters, attendance, payroll, leave approvals, and performance without switching tools.

Explore Now

Binary Labs

HealPulse

A comprehensive healthcare management solution designed for modern clinics and hospitals. Effortlessly manage OPD schedules, patient records, and pharmacy integrations to deliver superior care.

Explore Now

Templates

Solar CRM

Lead-to-commissioning platform for solar installers.

Real Estate CRM

Complete lead and property management for agencies.

Binary Labs

Get started with
Binary Labs today

Start a project
Home
Services

Software Development

Web Application DevelopmentCustom Software DevelopmentE-commerce DevelopmentMVP DevelopmentEnterprise Software Development

Grow with AI

AI IntegrationRAG SystemsAI ChatbotsWhatsApp Automation

Mobile App Development

Mobile App DevelopmentiOS App DevelopmentAndroid App DevelopmentNative App DevelopmentHybrid App Development

Backend & Cloud

Back-End DevelopmentServerlessAPI & Integrations

Frontend & Design

Front-End DevelopmentUI/UX DesignUX SpecialistUI Visual DesignWeb Design

Specialized Tech

SaaS Development
View All Services
Solar CRM
Solar CRM

The ultimate end-to-end management platform for solar installers. Streamline your sales pipeline, automate site surveys, and optimize project installations with data-driven insights.

EXPLORE NOW
HR Labs
HR Labs

Run your complete HR workflow in one place. Automate offer letters, attendance, payroll, leave approvals, and performance without switching tools.

EXPLORE NOW
HealPulse

A comprehensive healthcare management solution designed for modern clinics and hospitals. Effortlessly manage OPD schedules, patient records, and pharmacy integrations to deliver superior care.

EXPLORE NOW
ToolsBlog

Templates

Solar CRM

Lead-to-commissioning platform for solar installers.

Real Estate CRM

Complete lead and property management for agencies.

Resources

Case Studies

Deep dives into our successful client projects.

Blog

Engineering insights and company updates.

View All Solutions
Contact Us

Get in touch.

Tell us what you are building and we will help you ship faster with the right product and engineering support.

Contact UsSchedule a Call
[email protected]
Nashik, India
Binary LabsBinaryLabs

Engineering world-class software solutions for forward-thinking companies.

Company

  • Services
  • Work
  • Tools
  • Blog
  • Contact

Products

  • Solar CRM
  • HR Software
  • HealPulse

Β© 2026 Binary Labs Service. All rights reserved.

Privacy PolicyTerms of Service
Binary Labs Tools

Git Cheatsheet

Every Git command you actually need, organized logically. Stop Googling how to undo a rebase or delete a remote branch. Search, copy, and get back to coding.

git config --global user.name "Name"

Set your commit author name globally

Copy
git config --global user.email "email"

Set your commit author email globally

Copy
git config --list

List all config settings

Copy
git init

Initialize a new local repository

Copy
git clone <url>

Clone a remote repository locally

Copy
git clone <url> <dir>

Clone into a specific directory name

Copy
git add <file>

Stage a specific file

Copy
git add .

Stage all changes in the current directory

Copy
git add -p

Interactively stage chunks of changes

Copy
git reset HEAD <file>

Unstage a file, keep changes

Copy
git commit -m "message"

Commit staged changes with a message

Copy
git commit --amend

Modify the most recent commit

Copy
git revert <hash>

Create a new commit that undoes a given commit

Copy
git reset --soft HEAD~1

Undo last commit, keep changes staged

Copy
git reset --hard HEAD~1

Undo last commit, discard changes

Copy
git branch

List local branches

Copy
git branch <name>

Create a new branch

Copy
git checkout <branch>

Switch to an existing branch

Copy
git checkout -b <branch>

Create and switch to a new branch

Copy
git branch -d <branch>

Delete a merged branch

Copy
git branch -D <branch>

Force delete a branch (unmerged)

Copy
git merge <branch>

Merge a branch into the current branch

Copy
git rebase <branch>

Rebase current branch onto another

Copy
git rebase --abort

Abort an in-progress rebase

Copy
git cherry-pick <hash>

Apply a specific commit to the current branch

Copy
git remote -v

List remote connections with URLs

Copy
git remote add origin <url>

Add a remote named origin

Copy
git fetch origin

Download remote changes without merging

Copy
git pull origin <branch>

Fetch and merge remote branch

Copy
git push origin <branch>

Push local branch to remote

Copy
git push -u origin <branch>

Push and set upstream tracking

Copy
git status

Show working tree status

Copy
git log --oneline

Compact one-line commit history

Copy
git log --graph --oneline

Branch graph with one-line history

Copy
git diff

Show unstaged changes

Copy
git diff --staged

Show staged changes

Copy
git blame <file>

Show who changed each line of a file

Copy
git stash

Stash current uncommitted changes

Copy
git stash pop

Apply the most recent stash and remove it

Copy
git stash list

List all stashes

Copy
git stash drop

Discard the most recent stash

Copy
git tag <name>

Create a lightweight tag at HEAD

Copy
git tag -a <name> -m "msg"

Create an annotated tag with message

Copy
git push origin --tags

Push all tags to remote

Copy

Why use this Git Reference?

Designed specifically for developers in a state of panic.

πŸ”

Intent-Based Search

You don't need to know the command. Search for "delete branch" and we will show you the exact git syntax to use.

πŸ—‚οΈ

Logically Grouped

Commands are separated into intuitive categories: Setup, Branching, Undoing Mistakes, and Remote syncing.

πŸ“‹

One-Click Copy

Click any snippet to copy it directly to your clipboard so you can paste it into your terminal without typos.

How to use this Git Cheatsheet

  1. 1
    Search your intent

    If you are stuck, type what you are trying to achieve (e.g., "rename branch") in the search box at the top.

  2. 2
    Review the syntax and flags

    Read the description next to the command. Pay special attention to whether the command includes a `--hard` or `--force` flag, as these can be destructive.

  3. 3
    Copy to clipboard

    Click the command block to copy it. Paste it into your terminal, replacing the bracketed text (like `[branch-name]`) with your actual variables.

Why Git is so confusing

Git is the industry standard for version control, but it is notoriously hostile to beginners. Created by Linus Torvalds for managing the Linux kernel, Git was built for maximum power and flexibility, not user-friendliness. As a result, its command-line interface is famously inconsistent.

A reliable Git cheatsheet is a mandatory tool for any developer. Even senior engineers frequently forget the exact syntax required to delete a remote tag or squash the last three commits during an interactive rebase.

The 3 States of Git

To truly understand the commands in this cheatsheet, you must understand the three "trees" that Git manages:

  • The Working Directory: The actual files you see and edit in your IDE on your computer.
  • The Staging Area (Index): The waiting room. When you run `git add`, you are moving files into this staging area to prepare them for the next commit.
  • The Repository (HEAD): The permanent history. When you run `git commit`, everything in the staging area is locked into a permanent snapshot in the repository.