Things to check
status is observational, but reset --hard, clean and restore can discard work; push sends data to a remote. A repository may contain configured hooks and helpers.
Before you run it
Inspect status and diff, then distinguish local changes from remote publication.
Ask your agent
“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”
Context is part of the command
A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.