Commit And Push

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.

FradSer Updated 580 repo stars

File contents

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:
    git status --porcelain
    git diff --staged
    git diff
    
  2. Stage files:
    git add <file1> <file2> ...
    
  3. Commit: Formulate a Conventional Commit message and commit:
    git commit -m "<type>(<scope>): <summary>"
    
  4. Push: Detect current branch and push:
    BRANCH=$(git branch --show-current)
    git push origin "$BRANCH"
    

If pushing a new branch for the first time, append -u:

git push -u origin "$BRANCH"

fradser/skills/tree/main/skills/commit-and-push commit 8ae1b5a835

Frequently asked questions

npx skillmds@latest add fradser/commit-and-push-2