Hoc git branch remote

From openreachtech/hora-skills-ort-core · View interactive version

Hoc git branch remote is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. The branches a repository keeps on its remote: `main` as the default branch, which branches may merge into `main` by kind of repository — npm package, boilerplate or application — and why a trunk's published history is never rewritten. Use before opening a trunk, a pull request into `main`, or a rew

How to use this skill

Skill file

Git: Remote Branches

The branches a repository keeps on its remote, and which of them may reach main.

The default branch is `main`

a pull request is opened against unless another trunk is named, and the branch every trunk

descends from.

What may merge into `main` is decided by the kind of repository

Which branches may merge into main is not a choice made per change. It follows from what

the repository is, because what reaches main is what the repository releases.

| Kind of repository | May merge into main |

| :-- | :-- |

| npm package | release/x.x.x, env |

| boilerplate | release/x.x.x |

| application | release/x.x.x, env, hotfix/xxxx |

env carries what the published tarball does not hold, which needs no version.

/hoc-boilerplate.

hotfix/xxxx is the application's alone; neither an npm package nor a boilerplate merges one.

published to the registry and taken from there, and a boilerplate is there to be cloned into

other repositories; both reach their users through a version. An application runs in front of

its users, and a failure there is measured in a different sense of time altogether — the fix

goes out before a release could be cut for it.

`dev` in an older application

for the repository as it stands, not offered to a new one.

A named trunk advances only by a merged pull request

**The tip of main, release/x.x.x, dev and env moves only when a pull request merges into

it on the host.** A sub-branch is never merged into one of them locally and pushed: that puts the

merge on the remote with no review behind it, and the main-guard and release workflows, which

fire on pull requests, never run.

pushed like any other commit. What it is called settles nothing; only the named trunks above

take the pull request.

a pull request.

A trunk's published history is never rewritten

A trunk's published history is never rewritten. git push --force, -f and

--force-with-lease are not operations these branches take, and neither are the local

rewrites that would make one necessary — rebase, commit --amend, reset onto an already

pushed commit. There is no permission that unlocks this; it is what the names mean.

what was published, handed to whoever cloned it, or put in front of users, and rewriting it

rewrites when each of those happened.

from, so its commits are already in clones, in merge commits' parents, and in whatever CI

recorded against them. Rewriting it does not correct a mistake — it makes everyone else's

copy disagree with the remote, silently, until they try to push.

merges in like any other. A subject worded badly, a value that turned out wrong, a file that

should not have gone in: the trunk gains a commit that says so, and the record of the

mistake stays. A history a reader can trust is worth more than one that is tidy.

that are a person's.** Where no branch has been pushed from it and no pull request is open

against it, the commits the rule protects are held by nobody, and the reason above does not

reach the case.

/hoc-git-push. Refresh the remote-tracking refs, show what they now hold, and leave both

the judgement and the push where they belong.

each was cut from. That half is ordinary work and asks no permission of its own.

What else belongs elsewhere

back — belongs to /hoc-git-branch.

/hoc-git-push.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.