Git Command Helper
A visual helper for building common and advanced Git commands. Select actions and fill in details to generate perfect commands.
Getting Started
Create an empty Git repository in the current directory.
git initClone a remote repository into a new local directory.
git clone [url]Set the author name attached to your commits.
git config --global user.name "[name]"Set the author email attached to your commits.
git config --global user.email "[email]"Staging & Commits
Add a specific file to the staging index for the next commit.
git add [file]Stage all modified and newly created files in the working tree.
git add .Record changes to the repository with a descriptive message.
git commit -m "[message]"Update the last commit message or include newly staged files.
git commit --amend -m "[message]"Show compact state of modified, staged, and untracked files.
git status -sBranches & Switching
Create a new branch and switch to it immediately (Git 2.23+).
git switch -c [branch_name]Switch to an existing local branch.
git switch [branch_name]List both local branches and remote-tracking references.
git branch -aCombine development history from specified branch into current HEAD.
git merge [branch_name]Safely delete a local branch that has already been merged.
git branch -d [branch_name]Delete a local branch regardless of its merge status.
git branch -D [branch_name]Remotes & Synchronization
Push commits to remote and link upstream tracking.
git push -u origin [branch]Fetch remote commits and replay local work on top, avoiding merge bubbles.
git pull --rebase origin [branch]Force push without overwriting remote work if someone else pushed.
git push --force-with-lease origin [branch]List all configured remote nicknames and URLs.
git remote -vLink a new remote nickname (e.g. upstream) to a Git URL.
git remote add [name] [url]Undoing, Stashing & History
Temporarily shelve dirty working directory changes.
git stash push -m "[note]"Re-apply and remove the most recently stashed changes.
git stash popUndo the last commit while keeping its files in the staging area.
git reset --soft HEAD~1Discard uncommitted local edits to a file (Git 2.23+).
git restore [file]Squash, reword, or drop the last N commits.
git rebase -i HEAD~[number]Apply the changes introduced by an existing commit to current branch.
git cherry-pick [commit_hash]Instant Command Lookup
Search dozens of common and advanced Git CLI operations with dynamic argument replacements and parameter builders.
Scenario-Based Solutions
Solve frequent developer jams like moving commits to new branches, undoing pushes, and recovering deleted branches.
Modern Git 2.23+ Workflows
Features current best practices including git switch, git restore, and worktree commands alongside classic workflows.
Frequently Asked Questions
What does the Git Command Helper do?
Are dangerous destructive commands clearly labeled?
Can I copy generated Git commands directly?
More Dev Tools Utilities
AI Crawler & Robots.txt Simulator
Simulate and test robots.txt compliance against AI scrapers (GPTBot, ClaudeBot, CCBot, Bytespider) and search engines (Googlebot, Bingbot). Audit URL paths and generate AI-safe rules.
Mock JSON / Seed Data Generator
Generate realistic schema-driven mock datasets in JSON, NDJSON, SQL INSERT statements, CSV, and TypeScript interfaces 100% locally in your browser.
SVG to React / TypeScript Component Converter
Transform raw SVG markup into production-ready React (JSX/TSX) components with custom props, forwardRef, size controls, and currentColor inheritance.