Git & GitHub Command Generator Generate commands + copy + download script (codingwithsonu.com)

Choose what you want to do

Select tab → fill inputs → commands appear on right
Tip: press Ctrl + C after copy
Basic
Branch
GitHub Setup
Undo / Fix
Stash
Advanced
Most common everyday commands.
Example: main or master or develop
If you choose specific files, write them below.
Branch commands for daily workflow.
Helps you connect local project to GitHub quickly.
Use the .git URL for best results.
Hard actions can delete work. Use carefully.
Get it using git log --oneline
Great when you need to switch branch quickly.
For experienced workflows.
For tag action, Value = tag name like v1.0.0. For rebase, Value = number of commits like 3.

Generated Commands

Copy or download as script
Live
Download creates a git-commands.sh file. On Linux/Mac you can run: chmod +x git-commands.sh then ./git-commands.sh