notes


recover a local 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

  1. Move the bundle file to a different location

  2. Restore git repository from the bundle file

git clone reponame.bundle reponame