@matheusbsbs / matheus-bagliano / commits / 97c33c6583
Fork 0

Documentation: Refer to git-rebase(1) to warn against rewriting

This points readers at the "Recovering from upstream rebase" warning in git-rebase(1) when we talk about rewriting published history in the 'reset', 'commit --amend', and 'filter-branch' documentation. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Rast committed Sep 13, 2008 at 18:11 UTC 97c33c658365e0467e931bb8fed67d4f2a8d26f1
3 files changed +10 -2
Documentation/git-commit.txt
+4
@@ -144,6 +144,10 @@ It is a rough equivalent for:
144 ------
145 but can be used to amend a merge commit.
146 --
147 ++
148 +You should understand the implications of rewriting history if you
149 +amend a commit that has already been published. (See the "RECOVERING
150 +FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
151
152 -i::
153 --include::
Documentation/git-filter-branch.txt
+3 -1
@@ -36,7 +36,9 @@ the objects and will not converge with the original branch. You will not
36 be able to easily push and distribute the rewritten branch on top of the
37 original branch. Please do not use this command if you do not know the
38 full implications, and avoid using it anyway, if a simple single commit
39 -would suffice to fix your problem.
39 +would suffice to fix your problem. (See the "RECOVERING FROM UPSTREAM
40 +REBASE" section in linkgit:git-rebase[1] for further information about
41 +rewriting published history.)
42
43 Always verify that the rewritten version is correct: The original refs,
44 if different from the rewritten ones, will be stored in the namespace
Documentation/git-reset.txt
+3 -1
@@ -82,7 +82,9 @@ $ git reset --hard HEAD~3 <1>
82 +
83 <1> The last three commits (HEAD, HEAD^, and HEAD~2) were bad
84 and you do not want to ever see them again. Do *not* do this if
85 -you have already given these commits to somebody else.
85 +you have already given these commits to somebody else. (See the
86 +"RECOVERING FROM UPSTREAM REBASE" section in linkgit:git-rebase[1] for
87 +the implications of doing so.)
88
89 Undo a commit, making it a topic branch::
90 +