git-branchless-record(1)

πŸ“¦
version 0.11.1 Β· 2 versions
, in arch rolling, nixpkgs unstable

πŸ’… record β€” a Gen Z bestie tour of git-branchless-record(1)

from the General Commands Manual, periodt. This is the record page, and it's giving β€œmake a commit and pick the changes yourself” energy. No cap.


✨ NAME ✨

record β€” create a commit by interactively selecting which changes to include. That's the whole vibe: you're curating the commit, not just yeeting everything in. πŸ’–

🌸 SYNOPSIS 🌸

record [-m|--message] [--fixup] [-i|--interactive] [-c|--create]
       [-d|--detach] [-I|--insert] [-s|--stash] [--untracked] [-h|--help]

Copy that exactly, bestie β€” flags are literal, iykyk. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Create a commit by interactively selecting which changes to include. That's it, that's the main character move: you get to choose what goes in the commit. 🫢

πŸ’– OPTIONS πŸ’–

  • -m, --message <MESSAGES> β€” the commit message to use. Multiple messages get combined as separate paragraphs, similar to git commit. If you don't provide one, you'll be prompted to provide a commit message interactively. πŸ’¬
  • --fixup <COMMIT_TO_FIXUP> β€” a commit to β€œfix up”. The message will be prefixed with fixup! following the supplied commit, suitable for use with git rebase --autosquash. πŸ”₯
  • -i, --interactive β€” select changes to include interactively, rather than using the current staged/unstaged changes. Cute little change-picker moment. πŸŽ€
  • -c, --create <CREATE> β€” create and switch to a new branch with the given name before committing. New branch, who dis. 🌱
  • -d, --detach β€” detach the current branch before committing. Detached era. πŸ’…
  • -I, --insert β€” insert the new commit between the current commit and its children, if any. Sneaky little commit insertion, no cap. 🧚
  • -s, --stash β€” after making the new commit, switch back to the previous commit. Boomerang behavior. πŸͺƒ
  • --untracked <UNTRACKED_FILE_STRATEGY> β€” how should newly encountered, untracked files be handled? The possible values are:
    • add β€” add all untracked files. βœ…
    • disable β€” disable all untracked file checking and processing. 🚫
    • prompt β€” prompt the user about how to handle each untracked file. πŸ™‹
    • skip β€” skip all untracked files. ⏭️
  • -h, --help β€” print help (see a summary with -h). The classic. πŸ‘‘

signed off by the General Commands Manual's record page (git-branchless-record(1)) β€” that's the footer tea. No version or date line was in the footer, so I'm not inventing one, bestie. πŸ’–

πŸ“¦ where this page comes from