/git:git-pushfrom git
Uploads local commits to a remote repository and manages upstream tracking. Supports force-with-lease, tag pushing, branch deletion, and dry-run safety checks.
Ships in git. Installing the plugin adds it to Claude Code.
Upload local commits to a remote and set or update upstream tracking.
/push [options]
git push # push current branch to its upstream
git push <remote> # push to named remote (default upstream branch)
git push <remote> <refspec> # e.g. git push origin main
git push -u origin <branch> # push and set upstream (-u = --set-upstream)
git push --force-with-lease # overwrite remote only if nobody else pushed (preferred)
git push --force-with-lease origin <branch>
git push -f # hard force; can drop others' work — avoid on shared branches
git push --force # same as -f
Prefer --force-with-lease over -f / --force when rewriting history on a branch others might use.
git push origin <tag> # push one tag
git push origin --tags # push all local tags
git push --follow-tags # push commits and annotated tags they point to
git push --all # push all branches (use with care)
git push origin --delete <branch> # remove remote branch
git push origin :<branch> # older refspec form, same effect
git push origin :refs/tags/<tag> # delete remote tag
git push --dry-run # show what would be pushed
git push -v # verbose
git push --no-verify # skip pre-push hook (use sparingly)
git pull --rebase (or merge), resolve, then push again.git rebase / amended commits on a published branch, use --force-with-lease if policy allows, not blind -f.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
22 commands in this plugin
/gh-actionsGitHub Actions operations with gh, including workflow runs, jobs, logs, reruns, cancellations, and debugging flow./gh-contextgh availability, authentication, repository remote, branch, working tree, and explicit repository checks./gh-issueGitHub issue operations with gh, including list, view, create, comment, close, reopen, labels, and assignees./gh-prGitHub pull request operations with gh, including list, view, create, checkout, review, comment, close, reopen, merge, diff, and checks./gh-releaseGitHub release operations with gh, including list, view, create, upload assets, edit, and delete./git-branchManage branches and switchingnpx claudepluginhub pkc918/skills --plugin gitOther plugins' commands for the same job