GIT-REPLACE(1) Git Manual GIT-REPLACE(1) (NAME) git-replace - (SYNOPSIS) git replace [-f] git replace [-f] --edit git replace [-f] --graft [...] git replace [-f] --convert-graft-file git replace -d ... git replace [--format=] [-l []] (DESCRIPTION) replace refs/replace/ . replace SHA-1 . replace SHA-1 . . -f . -f replace . . (merge) . (prune pack transfer fsck). --no-replace-objects git . foo bar : $ git --no-replace-objects cat-file commit foo foo : $ git cat-file commit foo bar . GIT_NO_REPLACE_OBJECTS --no-replace-objects . (OPTIONS) -f, --force ( ) . -d, --delete . --edit . (pretty-printed) . . git- var(1) . --raw . (trees) . . . --graft [...] (graft commit). [...] . . --convert-graft-file $GIT_DIR/info/grafts . --convert-graft-file $GIT_DIR/info/grafts . (graft file) . -l , --list ( ). "git replace" . --format= short medium long . short . (FORMATS) : o short: o medium: -> o long: () -> () (CREATING REPLACEMENT OBJECTS) git-hash-object(1) git-rebase(1) git-filter-repo[1] . --edit git replace . blob (tip) . (BUGS) (blobs) (trees) . git reset --hard . git rev-list (pending objects) . (CAVEATS) (commit grafts) commit-graph . git- commit-graph(1) . (SEE ALSO) git-hash-object(1) git-rebase(1) git-tag(1) git-branch(1) git-commit(1) git-var(1) git(1) git-filter-repo[1] (GIT) git(1) (NOTES) 1. git-filter-repo https://github.com/newren/git-filter-repo Git 2.55.0 2026-06-29 GIT-REPLACE(1)