Skip to content

Commit b8fcce1

Browse files
chriscoolgitster
authored andcommitted
Documentation/replace: add Creating Replacement Objects section
There were no hints in the documentation about how to create replacement objects. Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 11aec95 commit b8fcce1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Documentation/git-replace.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ OPTIONS
6666
Typing "git replace" without arguments, also lists all replace
6767
refs.
6868

69+
CREATING REPLACEMENT OBJECTS
70+
----------------------------
71+
72+
linkgit:git-filter-branch[1], linkgit:git-hash-object[1] and
73+
linkgit:git-rebase[1], among other git commands, can be used to create
74+
replacement objects from existing objects.
75+
76+
If you want to replace many blobs, trees or commits that are part of a
77+
string of commits, you may just want to create a replacement string of
78+
commits and then only replace the commit at the tip of the target
79+
string of commits with the commit at the tip of the replacement string
80+
of commits.
81+
6982
BUGS
7083
----
7184
Comparing blobs or trees that have been replaced with those that
@@ -78,6 +91,9 @@ pending objects.
7891

7992
SEE ALSO
8093
--------
94+
linkgit:git-hash-object[1]
95+
linkgit:git-filter-branch[1]
96+
linkgit:git-rebase[1]
8197
linkgit:git-tag[1]
8298
linkgit:git-branch[1]
8399
linkgit:git[1]

0 commit comments

Comments
 (0)