⚡
DevToolBox
All Tools
Git Command Generator
Generate git commands from common workflows. Copy-paste ready commands.
Select a Workflow
Create new branch
Checkout/switch branch
Delete local branch
Delete remote branch
List all branches
Rename current branch
Pull latest from main
Pull with rebase
Pull with rebase + auto-stash
Fetch all remotes
Hard reset to remote main
Sync fork with upstream
Commit with message
Amend last commit
Undo last commit (keep changes)
Undo last commit (discard changes)
Undo last 3 commits
Fixup previous commit
Merge branch into current
Abort merge
Rebase onto main
Interactive rebase (last N commits)
Cherry-pick commit
Stash current changes
Stash with message
Apply latest stash
Drop latest stash
Discard all working directory changes
Discard specific file changes
Create lightweight tag
Create annotated tag
Delete tag
Push tags to remote
Show commit log (compact)
Show commit graph
Show commits since date
Find commits by author
Find files changed in last N commits
Add remote repository
List remotes
Force push (use carefully)
Push and set upstream
Clone via SSH
Clone via HTTPS
📤 Generated Command
📋 Copy
💡 Tips
Force push should be used cautiously — it overwrites remote history
Use
git rebase -i
for interactive commits before pushing
Stash is great for temporary context switches without committing
Always fetch and check status before force-pushing
Sponsored