Git push

From phatblat/dotfiles · View interactive version

Git push is an AI agent skill from the GitHub repository phatblat/dotfiles. Intelligently push the current git branch to its remote with safety checks. Use when invoked as `$git-push` or when the user asks to push committed work.

How to use this skill

Skill file

git-push

Push commits to the remote repository with branch and working-tree safety checks.

Workflow

  1. Gather status in one pass:

```bash

git status --porcelain=v1

git branch -vv

git remote -v

git log --oneline @{u}..HEAD 2>/dev/null

```

  1. Evaluate safety:
  1. Push:
  1. Report only the final result:

```text

✅ Pushed <branch> to <remote>

<remote output summary>

```

For protected default branches, remind the user that PR flow is preferred.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.