Document kit

Git Branch Pruning Guide

It provides a set of commands for identifying merged branches.

It includes a workflow for safe deletion. The files open in your own spreadsheet, calendar and text programs.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

It provides a set of commands for identifying merged branches. It includes a workflow for safe deletion. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • Git Branch Pruning Guide: cheat-sheet.md, pruning-workflow.md, safety-checklist.md.

With a README and the Teranite Facet Buyer Licence.

Sample

Git Branch Pruning Guide

It provides a set of commands for identifying merged branches. It includes a workflow for safe deletion.

Files: cheat-sheet.md, pruning-workflow.md, safety-checklist.md. cheat-sheet.md, start of the file:

# Git Branch Pruning Cheat Sheet

## 1. Remote Synchronization
Update your local view of the remote repository to ensure you are not deleting branches that are still active.

`git fetch --prune` : Fetches updates and removes local references to remote branches that have been deleted on the server.
`git remote update origin --prune` : Specifically prunes the origin remote.

## 2. Identification
Find which branches have already been merged into your current target branch (usually main or master).

`git branch --merged` : Lists all local branches that have been merged into the current HEAD.
`git branch -r --merged` : Lists all remote branches that have been merged into the current HEAD.
`git branch --no-merged` : Lists branches that contain work not yet merged into the current HEAD.

## 3. Deletion
Once identified, use these commands to remove the clutter.

`git branch -d <branch-name>` : Deletes a local branch (safe mode; fails if not merged).
`git branch -D <branch-name>` : Force deletes a local branch (use with caution).
`git push origin --delete <branch-name>` : Deletes the branch from the remote server.

## 4. Bulk Cleanup
Advanced commands for cleaning multiple branches at once.

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all