Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

push

БесплатноБез исполняемых скриптовНе проверен

Use when local commits need to reach the remote, when a new branch needs its upstream set, or before opening a pull request.

uw-ssecот uw-ssec★ 33 звезды на GitHub

Об этом скилле

Push

Push the current branch to the remote repository.

Instructions

  1. Run git status to check:
    • Current branch name
    • Whether there are uncommitted changes (warn the user if so)
    • Whether the branch tracks a remote
  2. Run git log --oneline origin/$(git branch --show-current)..HEAD 2>/dev/null to see unpushed commits. If the remote branch doesn't exist yet, show all commits since diverging from main.
  3. Show the user what will be pushed (branch name + commit list).
  4. Push:
    • If the branch has no upstream yet: git push -u origin <branch-name>
    • If it already tracks a remote: git push
  5. Confirm success.

Rules

  • NEVER force push (--force, -f) unless the user explicitly asks
  • NEVER force push to main or master — warn the user and refuse
  • If there are uncommitted changes, ask whether to commit first (using the commit skill's conventions) or push what's already committed
  • If push is rejected due to remote changes, suggest git pull --rebase and ask before proceeding
  • If the branch doesn't track a remote, use git push -u to set the upstream

Установить push в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл push?

Use when local commits need to reach the remote, when a new branch needs its upstream set, or before opening a pull request.

Как установить скилл push?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл push запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить push с