Git Command Generator
Build complex git commands visually — fill in parameters and copy.
Create & switch to branch
Create a new branch and switch to it
Delete local branch
Delete a local branch (force optional)
Delete remote branch
Delete a branch from the remote
Rename branch
Rename the current branch
List all branches
List local and remote branches
Amend last commit
Modify the last commit message
Commit with message
Stage all and commit
Squash last N commits
Squash recent commits into one
Cherry-pick commit
Apply a specific commit to current branch
Undo last commit (keep changes)
Undo commit but keep files staged
Undo last commit (unstage)
Undo commit and unstage files
Discard all local changes
Reset to last commit (destructive)
Revert a commit
Create a new commit that undoes changes
Unstage a file
Remove file from staging area
Add remote
Add a new remote repository
Push with upstream
Push and set upstream tracking
Force push (safe)
Force push with lease (safer)
Fetch and prune
Fetch remote and clean stale refs
Stash with message
Stash changes with a description
Apply specific stash
Apply a specific stash entry
List stashes
Show all stash entries
Pop stash
Apply and remove the latest stash
Pretty log
One-line log with graph
Log by author
Show commits by a specific author
Diff between branches
Show commits in branch A not in B
Search commit messages
Find commits by message content
Set user name
Set git username (global)
Set user email
Set git email (global)
Set default branch
Set default branch name for new repos
Categories
- Branch — Create, delete, rename branches
- Commit — Amend, squash, cherry-pick
- Undo — Reset, revert, unstage
- Remote — Push, fetch, force-push safely
- Stash — Save and restore work in progress
- Log — Pretty logs, search, diff between branches
- Config — Set username, email, defaults