IT for operating businesses
Using the git-replace Command
Create, list, and delete refs to replace objects. More information: <https://git-scm.com/docs/git-replace>.
- 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*
This content is compiled from the open-source tldr-pages project under the MIT license.