commands.sh

git replace

all

Create, list, and delete refs to replace objects.

More info →

Options (1)

-d, --deleteboolean

Delete existing replace refs for the given objects

Example: git replace {{[-d|--delete]}} {{object}}

Examples (3)

Replace any commit with a different one, leaving other commits unchanged

git replace object replacement

Delete existing replace refs for the given objects

git replace [-d|--delete] object

Edit an object's content interactively

git replace --edit object
made by @shridhargupta | data from tldr-pages