GIT-CRECORD(1)
π GIT-CRECORD(1) π
okay bestie, buckle up, we're reading the manual for git-crecord, a real one from the Git manual pages β¨
πΈ NAME πΈ
git-crecord β interactively select changes to commit or stage π
β¨ SYNOPSIS β¨
git crecord [-h]
git crecord [-v] [--author=AUTHOR] [--date=DATE] [-m MESSAGE] [--amend]
[-s]
π¦ DESCRIPTION π¦
so git-crecord is a Git subcommand, and what it does is let you interactively select changes to commit or stage using a ncurses-based text user interface. it's giving very much "I pick, you commit" energy π
fun fact: it's a port of the Mercurial crecord extension, which was originally written by Mark Edgington. shoutout to the ancestors π«Ά
here's the vibe: git-crecord lets you interactively choose among the changes you've made β and yes, with line-level granularity, we're not playing around β and then commit, stage, or unstage only the changes you select. literally the main character of your working copy π
and the best part? after you commit or stage the selected changes, the unselected changes are still present in your working copy. so you can run crecord multiple times and split your big messy changes into several smaller changesets. it's giving meal prep, it's giving portion control, it's giving π
π OPTIONS π
--author=AUTHORβ override the commit author. if you want to be explicit, use the standardA U Thor <author@example.com>format. otherwise,AUTHORis assumed to be a pattern and gets used to search for an existing commit by that author (that'srev-list --all -i --author=AUTHOR, iykyk); the commit author is then copied from the first such commit found. so it's like, "find me someone who matches this and steal their identity" but legally and within git π--date=DATEβ override the author date used in the commit.-m MESSAGE,--message=MESSAGEβ use the givenMESSAGEas the commit message. and if you pass multiple-moptions? their values are concatenated as separate paragraphs. multi--mgirlies stay winning β¨-C COMMIT,--reuse-message=COMMITβ reuse the commit message and the authorship information (including the timestamp) of the given commit. full copy-paste but make it git π-c COMMIT,--reedit-message=COMMITβ same as-C, but it invokes an editor so you can actually edit the commit message. so it's-Cwith a lil glow-up π--fixup=COMMITβ automatically creates the commit message by prepending"fixup!"to the commit message of the given commit. iconic, effortless, chef's kiss π₯--reset-authorβ when used with-C/-c/--amendoptions, or when committing after a conflicting cherry-pick, this declares that the authorship of the resulting commit now belongs to the committer. it also renews the author timestamp. so basically: it's your commit now, bestie π-s,--signoffβ adds aSigned-off-byline by the committer at the end of the commit log message. formal but cute π«Ά--amendβ amend the previous commit. it replaces the tip of the current branch by creating a new commit. the message from the original commit is used as the starting point, instead of an empty message, when no other message is specified from the command line via the-moption. the new commit has the same parents and author as the current one. very "wait, one more thing" of you πΈ-S KEY-ID,--gpg-sign KEY-IDβ GPG-sign commits. theKEY-IDargument is optional and defaults to the committer identity. locked, sealed, cryptographically delivered πβ¨--no-gpg-signβ don't sign this commit even ifcommit.gpgSignis set. respectfully opting out π-v,--verboseβ be more verbose. tell me everything, I'm listening π--debugβ show all sorts of debugging information. implies--verbose. this is the "oversharing" setting and honestly? respect π-hβ show this help message and exit. the classic escape hatch π
π SEE ALSO π
π AUTHOR π
Andrej Shadura <andrew@shadura.me>
and that's the whole page, bestie! this was the git-crecord manual, version 20230226.0, dated 2022-03-20 β written by Andrej Shadura <andrew@shadura.me>, and yes we are giving credit where credit is due π«Ά
go forth and split those changesets, you absolute legend βπ β¨
π¦ where this page comes from
- debian bookworm: git-crecord 20230226.0-2 Β· GPL-2.0-or-later
- debian trixie: git-crecord 20230226.0-2 Β· GPL-2.0-or-later
- ubuntu noble: git-crecord 20230226.0-2 Β· GPL-2.0-or-later
- ubuntu questing: git-crecord 20230226.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms