Use when pushing the current branch to the remote, especially when upstream tracking or safety checks are needed.
Push current branch to remote with safety checks.
Run in parallel where possible:
git status — check for uncommitted changesgit branch -vv — check current branch and tracking infogit log @{upstream}..HEAD --oneline 2>/dev/null — commits to pushmain or master → warn and ask for confirmationgit push -u origin <branch>git pushgit push -u origin $(git branch --show-current)--force unless the user explicitly says "force push"Show result: confirm push success with commit count.
/push — standard push/push --force — force push (only when explicitly requested, warn if main/master)/push origin <branch> — push to specific remote/branch--no-verifygit pull --rebase first