The Devs Tools

Git Cheatsheet

Search, filter, and instantly copy essential Git commands, branch operations, and remote repository configurations.

Set global git usernameInitial Setup
git config --global user.name "Your Name"
Set global git email addressInitial Setup
git config --global user.email "email@example.com"
Initialize a new local Git repositoryRepo Creation
git init
Clone a remote repository to local machineRepo Creation
git clone <repo-url>
Show status of files in working directoryInspection
git status
Add a specific file to staging areaStaging
git add <file>
Add all modified and new files to staging areaStaging
git add .
Record staged files to commit historyCommit
git commit -m "Commit message"
Overwrite the latest local commitModify Commit
git commit --amend -m "New message"
Display commit history in single linesInspection
git log --oneline
List local branchesBranching
git branch
Create a new branch and switch to itBranching
git checkout -b <branch-name>
Switch to an existing branchNavigation
git checkout <branch-name>
Merge specified branch into active branchMerging
git merge <branch-name>
Delete a merged local branchCleanup
git branch -d <branch-name>
Link local repo to a remote endpointRemote setup
git remote add origin <url>
Upload local commits to remote branchUpload
git push origin <branch-name>
Fetch and merge remote changes to localDownload
git pull origin <branch-name>
Download remote changes without mergingInspection
git fetch origin
Temporarily shelve uncommitted active changesStashing
git stash
Restore the most recently stashed changesStashing
git stash pop
Undo last commit and delete changesCAUTION: Destructive
git reset --hard HEAD~1
Undo last commit but keep files stagedSafety Reset
git reset --soft HEAD~1
Discard changes in a local fileSafety Reset
git checkout -- <file-name>

Frequently Asked Questions

Is my data sent to a server when using the Git Cheatsheet?
No. The Git Cheatsheet is a fully client-side utility. All data processing, calculations, and conversions are handled locally in your browser. No input text, payloads, or keys are uploaded to any external server.
How do I use the Git Cheatsheet?
Simply type, paste, or upload your source content into the input field. The application dynamically processes, parses, or calculates the output in real-time.
Does this tool support bulk actions?
It is designed for real-time interactive use. For extremely large datasets, we recommend dividing them into smaller chunks to prevent browser freeze.
Can I copy the output to my clipboard?
Yes. Each output card features a one-click 'Copy' button that copies the result directly to your system clipboard.
Does the Git Cheatsheet store history or cache my inputs?
No. The application runs entirely in browser memory. Once you refresh the tab, navigate away, or close the window, all inputted details, logs, and outputs are completely cleared.
Is the Git Cheatsheet compatible with mobile devices?
Yes. The interface is optimized to be fully responsive. You can perform calculations, conversions, and formats on all modern mobile, tablet, and desktop web browsers.
Does the Git Cheatsheet work offline?
Yes. Once loaded, all code and assets required to run the Git Cheatsheet reside in your browser cache, enabling offline use without an active network connection.