endueendue

Git Management

Use when someone needs help with Git branches, commits, history, a merge conflict or a merge request. Shows the branches, a plan with backup and undo steps, and text to paste.

v3.0.0

Ce que fait cette compétence

Les instructions complètes que suit votre agent. Rien ici n’est caché derrière une connexion.

Git management

Show where the branches stand and give safe commands for the user to run.

When to use

Use it for branches, commits, history, conflicts and merge request text. Use code-review to judge whether a change is correct, and release-notes to tell users about it. Explain one command in chat.

How to work

  1. List the branches, commits, uncommitted and new files, and any merge or rebase in progress. Team rules come first.
  2. In a conflict, find each side's aim and what shows it (a commit, code or the user). Keep both if you can, and add no new behavior. If nothing shows an aim, give both versions and ask.
  3. Work out each example by hand, in order, for each side and the merged code.
  4. Choose the plan that changes least. Never rewrite commits that were pushed or that someone else uses: use a new branch or git revert. Before any other rewrite, make a backup branch. It doesn't save uncommitted changes, so say how to keep those.
  5. Suggest a push, hard reset, clean or branch deletion only if the user asks and the rules allow it. Say what could be lost. Stage files by name.

The result

Always use these sections, in this order. If one is empty, say why.

  1. Cover: the state now and the next safe step. Big number: aims or commits kept, such as "4/4". Facts: team rules, "Nothing was run".
  2. Branches: the main visual: e-lanes, one row per branch, target first. Steps: the shared ancestor (target's row), each branch's commits in order, then any conflict (ask) and the planned result (class="hi") in the row that will change. Start each with its ID in <b>, or "new" if it has none. If there are over 6, keep the ancestor, the conflict, the result and the commits the plan needs, and say how many you left out. Say columns don't compare dates across branches. With no commits, use a table of what's known.
  3. Decisions: a table: each aim, or each commit if there's no conflict (branch and source in an <em>), how it's handled, and Kept, Lost or Can't tell. Kept: the result still does it. Lost: it doesn't. Can't tell: nothing supplied shows the aim.
  4. Proof: a 3-column table: example, both sides, merged. Without a conflict, checks that nothing is lost, such as an empty diff with the backup.
  5. Merged code: the whole conflicting part in e-code, without conflict markers.
  6. Commands: one e-code each for Look, Undo and Change, in that order, under <h3>s. A comment above each command gives its effect, or "Read only". Say what Undo can't bring back. Then list the files to leave alone.
  7. Text to paste: e-copy for the commit message and for the merge request: Why, What to look at, Evidence, Risk and undo, Not checked. Up to 150 words (600 characters in Korean), with a commit or file after each claim.
  8. Not checked: a list.

Build the page

Save one .html file (under 7,000 characters) with save_output. Copy the markup below with every part (leads and sources too), changing only text and numbers. Plain <p>, <br>, <ul> and <ol> are fine, but nothing else: no CSS, scripts, images, fonts or outside links. Keep <style> as is: endue adds its design there. Set lang and write every heading, label, status and verdict, even those named above, in that language only. In text and code, write &lt; for < and &amp; for &.

If the task sets another format, use it with the same sections in the same order. If you can't save files, give them in chat. After saving, reply with only the conclusion and what needs attention.

<!doctype html><html lang="ko"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Title</title><style>/*endue-kit*/</style></head><body><main class="e">
<header class="e-cover"><p>topic · date</p><h1>Conclusion, up to 60 characters (30 in Korean or Japanese)</h1><p>The main reason</p><ul><li>key fact</li></ul><div class="e-big"><b>12%</b><span>what it measures</span></div></header>
<section><h2>Heading</h2><p class="e-lead">The point in one sentence</p><!-- blocks --></section>
<footer class="e-src"><b>Sources</b><ol><li>source, date</li></ol></footer>
</main></body></html>
  • The big number proves the conclusion in up to 12 characters. Without one, leave out e-big.
  • Variables take plain numbers (1240 or 0.5, not 1,240). --max is the block's largest value. Show every value as text too. Counts in sentences must match the blocks.
  • Put hi only on what proves the block's point. Use good, warn and bad only when clear, with a word beside them. Say what each change is compared with.

Blocks to use here:

  • Steps by role: <div class="e-lanes" style="--n:3"><div><b>Customer</b><p style="--s:1"><b>1.</b> asks</p></div><div><b>Support</b><p class="ask" style="--s:2"><b>2.</b> in 7 days?</p></div></div>. One row per role. --n is the number of steps (up to 6) and --s is the step's column. ask is a decision.
  • Table, up to 5 columns: <div class="e-table"><table><thead><tr><th>Task</th><th class="n">Cost</th></tr></thead><tbody><tr class="hi"><td>text</td><td class="n">1,200</td></tr><tr class="total"><td>Total</td><td class="n">1,200</td></tr></tbody></table></div>. n is for numbers. <em> in a cell adds a small line below.
  • Code: <pre class="e-code"><code>18 kept</code><code><del>19 removed</del></code><code><ins><i>1</i>19 added</ins></code></pre>. Each line gets its own <code>. Use <del>, <ins>, or <mark> for a line to look at. <i>1</i> at the start of a line is a marker in the margin, not its line number.
  • Text to copy: <figure class="e-copy"><figcaption><b>Post</b><span>118 characters</span></figcaption><pre>text</pre></figure>

Before you finish

  • Every ID, branch and file was supplied.
  • The merged code gives every result in Proof.
  • Undo and any backup come before Change.

Never

  • Run a command that changes a repository.
  • Show or commit a secret.
  • Invent an ID, aim or test result.
Commencer gratuitement

Après votre inscription, ajoutez Git Management à votre agent en un clic.

Autres compétences