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
Is Git Command Helper free to use?
How does Git Command Helper protect my privacy and data?
Does Git Command Helper work on mobile devices?
What are the main features of Git Command Helper?
More Dev Tools Utilities
Cron Generator & Expression Parser
Build, parse, and translate cron expressions visually. Features plain-English interpretation, next execution times (Local & UTC), and multi-platform snippets.
JSON Formatter
Format, beautify, minify, and validate JSON instantly. Adjustable indentation with real-time syntax validation and error feedback.
Markdown Preview
Write Markdown and see rendered HTML in real-time. Split-pane editor with copy Markdown/HTML.