Loading...
Loading...
Push the current branch to origin safely (lint, test, resolve non-fast-forward via pull skill, then push). Use when the user asks to push or publish commits to the remote. Does not create or edit PRs—use the create-pr-jp skill for that.
npx skill4agent add noblejasper/agent-skills pushoriginorigingit pushgit statusgit remote -vgit fetchpnpm lintpnpm testpnpm lint && pnpm testorigingit push -u origin HEADorigin/mainpnpm lint && pnpm test--force-with-leasegit pushoriginbranch=$(git branch --show-current)
# Validation gate (lint then test; use repo-specific scripts if documented)
pnpm lint && pnpm test
# Push (with upstream tracking on first push)
git push -u origin HEAD
# If the remote moved: resolve via the pull skill, re-run `pnpm lint && pnpm test`, then:
# git push -u origin HEAD
# Auth/permission failures: show the error and stop—do not force-push to fix.
# Only after intentional history rewrite:
# git push --force-with-lease origin HEADorigin--force--force-with-lease| Situation | Action |
|---|---|
| pull skill → merge/rebase per repo rules → |
| Credential / permission denied | Report verbatim; user fixes credentials or repo access—do not bypass with force push |
| Wrong remote or branch | Verify |