Jump to content

User:Rongzhou/Super bash: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

15 October 2026

14 October 2026

9 October 2026

8 October 2026

  • curprev 14:5314:53, 8 October 2026 Rongzhou talk contribs 433 bytes +433 Created page with "== Git and related == === Github CLI (<code>gh</code>) === Merge pr and delete local git worktree + remote branches <syntaxhighlight lang="bash" copy> b=$(gh pr view 118 --json headRefName -q .headRefName); w=$(git worktree list --porcelain | awk -v r="refs/heads/$b" '/^worktree /{p=substr($0,10)} /^branch / && $2==r {print p}'); [ -n "$w" ] && git worktree remove "$w"; gh pr merge 118 --merge --delete-branch </syntaxhighlight>"