Scenario
Undo last commit (keep changes)
Command
git reset --soft HEAD~1
Developer Tools
Assemble common Git commands for undo, rebase, stash, and cleanup scenarios with parameters you can copy to the terminal. Useful when rewriting history or handling conflict-related workflows.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
开发工具
Assemble common Git commands for undo, rebase, stash, and cleanup scenarios with parameters you can copy to the terminal. Useful when rewriting history or handling conflict-related workflows.
git ... Git 命令会随场景和参数自动生成。
Scenario
Undo last commit (keep changes)
Command
git reset --soft HEAD~1
No. It only generates command text. Execution happens in your own terminal.
Yes. Confirm branch collaboration rules before rebase, reset, or similar operations and back up when needed.
Tools
Continue with another translated tool for a nearby task.
Docker Run to Compose
Convert docker run commands into docker-compose.yml locally in your browser, recognizing ports, volumes, environment variables, and images. Useful for turning one-off runs into reusable compose files.