home notes

recover a copy of a git repository from the server copy on disk

2021-02-17
  1. Create a bundle

    cd reponame.git

    git bundle create reponame.bundle --all

  2. Move the bundle file to a different location

  3. Restore git repository from the bundle file

    git clone reponame.bundle reponame