git-pushing

Stage, commit, and push git changes with conventional commit messages.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/Barbaros911/As-mine --skill git-pushing-barbaros911
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-pushing
Source: https://github.com/Barbaros911/As-mine/tree/main/.claude/skills/git-pushing
Command: npx skills add https://github.com/Barbaros911/As-mine --skill git-pushing-barbaros911

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Manually staging files, writing consistent commit messages, and pushing branches to a remote is repetitive and error-prone. This Skill automates the entire commit-and-push workflow with a single script that generates conventional commit messages and handles new branch setup. ## Core Features & Use Cases - Automated Staging and Commit: Stages all changes and creates a commit with a conventional commit message (feat, fix, docs, test, chore, refactor) inferred from the changed files. - Smart Push Handling: Detects whether the branch exists on the remote, pushes with the -u flag for new branches, and prints a GitHub pull request link when applicable. - Use Case: After finishing a feature, you want to save and share your work. Invoke the Skill and it stages everything, commits with a message like "feat(api): update 3 file(s)", pushes to origin, and shows the PR creation URL. ## Quick Start Ask the assistant to commit and push your current changes, optionally providing a custom conventional commit message.

Frequently Asked Questions about git-pushing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I commit and push all git changes in one step?▼

Run the smart_commit.sh script, which stages all changes with git add, generates a conventional commit message, commits, and pushes to the current remote branch. You can also pass a custom message as an argument.

How are conventional commit messages generated automatically?▼

The script analyzes staged file names and diff content to infer the commit type, such as docs for markdown files, test for test files, or chore for dependency manifests. It also derives a scope from the top-level directory or keywords like plugin, skill, or agent.

Does the script handle pushing a new branch to GitHub?▼

Yes. It checks whether the branch exists on the remote with git ls-remote. For new branches it pushes with git push -u origin and prints a GitHub pull request creation link when the remote URL is on github.com.

What happens if there are no changes to commit?▼

The script checks git diff for both unstaged and staged changes. If nothing has changed, it prints a warning and exits cleanly with status 0 without creating an empty commit.

Why did my git push fail after committing?▼

Push failures typically come from rejected non-fast-forward updates, missing remote permissions, or network issues. The script exits with an error message when git push fails, so check the remote state and pull or rebase before retrying.