All tags
commit
Narrow down
Git13
- Tip
git commit -C ORIG_HEAD-C reuses an old commit message, author and date includedCommit new content with the message and authorship of an existing commit.1 Dec 2026 - Tip
git commit --fixup=reword:HEAD~1Fixup=reword rewrites an older commit message at your next rebaseQueue a better message for an earlier commit without touching its files.1 Dec 2026 - Tip
git config --global commit.cleanup scissorsCommit.cleanup scissors keeps # lines in your commit messageStop Git from silently dropping message lines that start with a hash.1 Dec 2026 - Tip
git commit -m "Fix login redirect" -m "The old code sent signed-out users to a 404."A second -m starts a new paragraph in your commit messageWrite a subject and a body from the command line without opening an editor.30 Nov 2026 - Tip
git commit -m "Add export button" \git commit with trailer adds Co-authored-by lines the right wayAdds trailer lines like Co-authored-by to a commit message in the format tools expect.30 Nov 2026 - Tip
git format-patch origin/main..HEAD -o patches/git format-patch and git am move commits as plain filesExports commits as patch files that keep author, date and message, and applies them elsewhere.30 Nov 2026 - Tip
git commit --amend --no-edit --reset-authorgit commit amend with reset-author fixes a commit made with the wrong emailRewrites the author of your last commit with your current name and email.30 Nov 2026 - Tip
git commit --no-verify -m "WIP: half done export"git commit -n skips the pre-commit hook when you really need toBypasses the pre-commit and commit-msg hooks for one commit.30 Nov 2026 - Tip
git commit -m "Fix typo in readme" README.mdgit commit with a path commits just that file and ignores the rest of the indexCommits the current version of the files you name, while other staged work stays staged.30 Nov 2026 - Tip
git restore --source=HEAD~3 -- src/settings.phpgit restore --source brings back one file from another commitReplaces one file in your working tree with its version from any other commit.28 Nov 2026 - Tip
git commit --allow-empty -m "Trigger CI"git commit --allow-empty makes a commit with no changesRecords a commit that changes no files, for example to restart a CI run.28 Nov 2026 - TipCommit.template pre-fills your commit messageStarts every commit message editor with a text of your own, such as a checklist.28 Nov 2026
- Tip
git add forgotten-file.txtAdd a forgotten file to your last commit with --amend --no-editAdds your staged changes to the previous commit without touching its message.25 Jun 2026
Shell1
Nothing matches.