aboutsummaryrefslogtreecommitdiffstats
path: root/using-git.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-22 10:19:52 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-22 10:19:52 +0200
commit83262d961607534f8b255656e361c7d67b9d0be9 (patch)
tree5a6e00ae4e1fc99cf8fa3cca553153d86c872bac /using-git.texinfo
parentwriting style (diff)
downloadusing-git-83262d961607534f8b255656e361c7d67b9d0be9.tar.gz
using-git-83262d961607534f8b255656e361c7d67b9d0be9.tar.bz2
using-git-83262d961607534f8b255656e361c7d67b9d0be9.tar.xz
naïve resets
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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