diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-22 10:19:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-22 10:19:52 +0200 |
commit | 83262d961607534f8b255656e361c7d67b9d0be9 (patch) | |
tree | 5a6e00ae4e1fc99cf8fa3cca553153d86c872bac | |
parent | writing style (diff) | |
download | using-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>
-rw-r--r-- | using-git.texinfo | 28 |
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 |