# Commit And Push

> Creates clean conventional git commits using standard git and pushes changes to the remote reposi…

Creates clean conventional git commits using standard git and pushes changes to the remote repository. Use when the user asks to "commit and push", "push changes", or complete a commit followed by git push.

- Page: https://ss33.ai/skills/fradser/commit-and-push-82773949594
- Publisher: fradser
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Source control & code review](https://ss33.ai/skills/category/software-development-t44z8z/source-control-and-code-review-jebezw)
- License: MIT
- Source: https://github.com/fradser/dotclaude/blob/f55ac1cea49240ca09c981e43e08f3bc1bc5b6ed/git/skills/commit-and-push/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/fradser/commit-and-push-82773949594

# Commit and Push Skill (Standard Git)

Create clean, atomic Conventional Commits using standard `git` commands and push them to origin.

## Workflow

1. **Inspect status and diff**:
   ```bash
   git status --porcelain
   git diff --staged
   git diff
   ```
2. **Stage files**:
   ```bash
   git add <file1> <file2> ...
   ```
3. **Commit**:
   Formulate a Conventional Commit message and commit:
   ```bash
   git commit -m "<type>(<scope>): <summary>"
   ```
4. **Push**:
   Detect current branch and push:
   ```bash
   BRANCH=$(git branch --show-current)
   git push origin "$BRANCH"
   ```
   If pushing a new branch for the first time, append `-u`:
   ```bash
   git push -u origin "$BRANCH"
   ```
