Git Push

Push commits to remote repositories.

Andersonlimahw Updated

File contents

Git Push Skill

Push local branch commits to remote repositories with safety options.

Capabilities

  • Push to remote: git push origin <branch>
  • Push current branch: git push
  • Set upstream: git push -u origin <branch>
  • Push all branches: git push --all origin
  • Push tags: git push --tags
  • Force push: git push --force ⚠️ destructive
  • Force with lease: git push --force-with-lease (safer force)
  • Delete remote branch: git push origin --delete <branch>
  • Push to specific remote: git push <remote> <branch>
  • Dry run: git push --dry-run
  • Push and set upstream: git push --set-upstream origin <branch>

Usage

Triggered when user says "push", "push to remote", "upload commits". Prefer --force-with-lease over --force. Warn before force-pushing shared branches. Use -u for first push of a new branch.

Andersonlimahw/lemon-ai-hub/tree/main/plugins/git-expert/skills/git-push commit aab54ac404

Frequently asked questions

npx skillmds@latest add andersonlimahw/git-push