aboutsummaryrefslogtreecommitdiffstats
path: root/using-git.texinfo
diff options
context:
space:
mode:
Diffstat (limited to 'using-git.texinfo')
-rw-r--r--using-git.texinfo28
1 files changed, 28 insertions, 0 deletions
diff --git a/using-git.texinfo b/using-git.texinfo
index d96770c..8df4bfc 100644
--- a/using-git.texinfo
+++ b/using-git.texinfo
@@ -55,6 +55,7 @@ Texts. A copy of the license is included in the section entitled
* Branching out::
* Collaborating::
* Basic commands::
+* I just don't know what went wrong::
* GNU Free Documentation License::
@end menu
@@ -910,6 +911,33 @@ what you are doing.
+@node I just don't know what went wrong
+@chapter I just don't know what went wrong
+
+@menu
+* Naïve reset::
+@end menu
+
+
+
+@node Naïve reset
+@section Naïve reset
+
+If something went horribly, horribly,
+horribly, horribly wrong and you do
+not know how to get back to a clean
+state, you can always doing this naïvely
+by clone the repository:
+
+@example
+git clone REPOSITORY REPOSITORY.new
+cp REPOSITORY/.git/config REPOSITORY.new/.git/config
+yes | rm -r REPOSITORY
+mv REPOSITORY.new REPOSITORY
+@end example
+
+
+
@node GNU Free Documentation License
@appendix GNU Free Documentation License
@include fdl.texinfo