Free online tools to generate, calculate,
convert, format, encode, and play.
 

Git Command Cheat Sheet

Browse and search all essential Git commands. Click any command to copy it to your clipboard.


Copied!

How It Works

Git is a distributed version control system that tracks changes in source code during software development. It allows multiple developers to work on a project simultaneously, maintaining a complete history of every change.

Core Concepts
  • Working Directory: Your local files where you make changes
  • Staging Area (Index): A snapshot of changes ready to be committed
  • Repository: The .git directory storing the complete project history
  • Remote: A shared repository hosted on a server (e.g., GitHub, GitLab)
Typical Workflow
  1. git clone or git init to start a repository
  2. Make changes to files in your working directory
  3. git add to stage changes for the next commit
  4. git commit to save staged changes to local history
  5. git push to share commits with a remote repository
  6. git pull to fetch and merge changes from others
Branching Strategy

Branches allow parallel development without affecting the main codebase. Common patterns include feature branches, release branches, and hotfix branches. Use git branch to create, git checkout or git switch to navigate, and git merge or git rebase to integrate changes.

Tip: Click any command in the table above to copy it to your clipboard. Use the category filters to focus on specific Git workflows.

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with