home stdin

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


Recover a local git repository from a server copy of the git repository. This may be required if your hosting server solution such as gitea or bitbucket server has failed.

  1. Acquire a copy of the server folder for the git repository and 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