From 83262d961607534f8b255656e361c7d67b9d0be9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 22 Aug 2013 10:19:52 +0200 Subject: naïve resets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- using-git.texinfo | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'using-git.texinfo') 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 -- cgit v1.2.3-70-g09d2