STG-CLEAN(1)

πŸ’… stg-clean πŸ’…

okay so bestie, this is the StGit Manual page for stg-clean, and it is literally the cleanup crew for your patch series ✨🧹

🌸 NAME 🌸

stg-clean β€” delete empty patches from the series πŸ’–

✨ SYNOPSIS ✨

stg clean [OPTIONS]

πŸ¦‹ DESCRIPTION πŸ¦‹

By default, stg clean deletes the empty patches from the entire series. You can also tell it to delete only empty patches from the applied patches, or only empty patches from the unapplied patches.

A patch is considered empty if its tree is the same as its parent. That is the vibe check: no tree difference, no patch πŸ™ˆπŸ’…

πŸŽ€ OPTIONS πŸŽ€

  • -A, --applied β€” delete empty applied patches 🌸
  • -U, --unapplied β€” delete empty unapplied patches πŸ¦‹

🌈 STGIT 🌈

Part of the StGit suite - see stg(1) 🫢


mwah πŸ’‹ this iconic little page is from StGit 2.7.0, dated 10/17/2026. periodt πŸ‘‘

πŸ“¦ where this page comes from