# HG changeset patch # User Oleksandr Gavenko # Date 1616271332 -7200 # Node ID 5262c08480dc7ef684028acd8e8be488e82beeb6 # Parent e101133a8a62ca6d71b8dec97df8262e8624d4d2 Backup. diff -r e101133a8a62 -r 5262c08480dc git.rst --- a/git.rst Tue Feb 23 18:40:36 2021 +0200 +++ b/git.rst Sat Mar 20 22:15:32 2021 +0200 @@ -605,6 +605,23 @@ $ git checkout 'master@{1979-02-26}' $ git checkout 'master@{1979-02-26 18:30:00}' +Backup +====== + +Create bundle:: + + $ git bundle create $BUNDLE_FILE --all + +Recreate repository from bundle:: + + $ git clone $BUNDLE_FILE $REPO_PATH + +Or clone without checking out working directory:: + + $ git clone --mirror $ORIG $DEST + +Bundle is a single file, clone creates `.git` file hierarchy. + Using git to work with SVN offline. ===================================