Search

PythonReactSEOPDF
GitHub Skill

commit

Stage, commit, and push changes to the current branch. Use when asked to commit changes, push code, or after completing a task.

JonathanBechtel☆ 0 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Commit and Push

Stage all changes, create a commit with a conventional commit message, and push to the remote.

Instructions

  1. Run git status to see what files have changed
  2. Run git diff to understand the changes (both staged and unstaged)
  3. Run git log --oneline -5 to see recent commit message style
  4. Stage relevant files with git add
  5. Create a commit with a descriptive message following conventional commits format
  6. Push to the current branch

Important: Git Identity

Do NOT modify the git author or add Co-Authored-By headers. The commit should use the user's existing git configuration (their name and email from git config user.name and git config user.email).

Commit Message Format

Use conventional commits style observed in the repository:

  • feat: for new features
  • fix: for bug fixes
  • chore: for maintenance tasks
  • refactor: for code refactoring
  • docs: for documentation changes

Keep subject line under 72 characters. Focus on the "why" rather than the "what".

Commit Command Format

Always use a HEREDOC to ensure proper formatting:

git commit -m "$(cat <<'EOF'
<type>: <description>

<optional body explaining why>
EOF
)"

Safety Rules

  • NEVER commit files that contain secrets (.env, credentials.json, etc.)
  • NEVER use --force or --no-verify unless explicitly requested
  • NEVER amend commits that have been pushed to remote
  • NEVER modify git config (user.name, user.email, etc.)
  • If pre-commit hooks fail, fix the issues and create a NEW commit

Push

After committing, push to the current branch:

git push origin HEAD

If the branch doesn't have an upstream, use:

git push -u origin HEAD

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-03-03
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!