Prompts, Skills & Knowledge PacksCoding & Developer ToolsDownload

Push to GitHub When Git Push Fails

This listing has not been audited by AIMarket24. We haven't verified that the code or workflow works as described. Confirm the file – you have 3 days to open a dispute if the file does not match the listing.

When git push can't sign in but you have a GitHub token, this pushes your commits through GitHub's API instead.

Push to GitHub When Git Push Fails

About this app

Sometimes git itself can't push: no credential helper on the machine, a sandbox with only web access, an auth setup that would take longer to fix than the push is worth. If you have a GitHub API token, the same commits can be assembled through GitHub's API directly — upload the changed files, build the tree, create the commit, move the branch. Inside the package: the skill file with the full sequence and its preconditions, a small working Python implementation, and a table of the API calls in order. The edge cases are the valuable part, because they cost real debugging time: an empty repository refuses API pushes with a 409 until you seed it with one file through a different endpoint, and pushing a tree that's already identical to the remote fails with a 422 unless you check for that case first. A run goes like this: your repo must be committed and clean, and the remote must be behind you or matchable by tree — this method never force-pushes. The agent reads the remote branch, stops and reports "already up to date" if the remote head matches yours, uploads only the changed files with their correct file modes, builds the new commit on top of the remote head, and verifies the branch actually moved. The token comes from an environment variable and is never written into a file or a log.

Problem it solves

Sometimes git itself can't push: no credential helper on the machine, a sandbox with only web access, an auth setup that would take longer to fix than the push is worth. If you have a GitHub API token, the same commits can be assembled through GitHub's API directly — upload the changed files, build the tree, create the commit, move the branch.

Key features

  • ✦ Inside the package: the skill file with the full sequence and its preconditions
  • ✦ a small working Python implementation
  • ✦ and a table of the API calls in order. The edge cases are the valuable part
  • ✦ because they cost real debugging time: an empty repository refuses API pushes with a 409 until you seed it with one file through a different endpoint
  • ✦ and pushing a tree that's already identical to the remote fails with a 422 unless you check for that case first.

Tech & operating

Built with-
Tech stack-
Operating modelBYO keys
External APIs-
AI models-
Monthly running cost$0 / mo
Setup difficultyeasy
DocumentationIncluded

Ownership & legal

Proof of ownershipI built it myself — this skill package is my original work. I am Alex Boles, Founder of TechPartner Consulting. The sequence, preconditions and Python implementation were written by me from real debugging experience with GitHub's API.
AuthorshipFully human-written
Included assetsSkill filesmall Python implementationtable of API calls in order
Transferred accounts-
Managed handoffNo
Report this listing

Tell us if this content is illegal or harmful. This notice goes to AIMarket24. It is not the code-audit report.

Questions before you buy

What do I get?

Prompts, Skills & Knowledge Packs. Download of the files after payment. Commercial use license. Documentation included. Skill file. small Python implementation.

What will I be charged?

$9.00 total. The price shown is the total you pay.

What if the file is not what the listing describes?

You pay on Stripe. The seller is paid after you confirm the delivery matches this listing. If you do not open a dispute, the order confirms automatically 3 days after delivery. You can open a dispute from the order page before that.

Was this listing audited?

This listing has not been audited by AIMarket24. We haven't verified that the code or workflow works as described. Confirm the file – you have 3 days to open a dispute if the file does not match the listing.

Also from AIMarket24

Sold by AIMarket24Agent Skills for Freelancers & Agencies: 20 Skills for Claude$39.00 total

Related listings

API Breaking Change Check: OpenAPI Diff for PRs and CI
$19.00 total
Buy now
Prompts, Skills & Knowledge PacksCoding & Developer Tools
Website Prospect Audit: Client-Ready Site Report + Pitch Email
$19.00 total
Buy now
Prompts, Skills & Knowledge PacksMarketing, SEO & Growth
Crypto Puzzle Hunt Solver Bundle
$59.00 total
Buy now
Prompts, Skills & Knowledge PacksCoding & Developer Tools