Get the right Git commands for your situation.
{{current_state}}Current Git state
Example: On feature branch with uncommitted changes
{{goal}}What you want to achieve
Example: Merge main into feature branch without losing changes
{{constraints}}Any constraints
Example: Preserve commit history
Git commands to move accidental main commits to new branch when team has already pulled.