TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

How to restore single git repository from backup

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git backup utility is taking the backup of repositores as .bundle files and we could not restore a single repo to server from that backup using git restore option. Git backup restore utility is configured in such a way that to restore the backup of all repositories together instead of single one.

But we can restore the repo from .bundle file and push it to server as a new repo in an alternate way.

Step1: Restore the repo from .bundle backup locally.

#git clone --mirror backup.bundle reponame

Here we need to replace backup, reponame accordingly.

Step2: Push the repo to server.

That's all…

Leave a Reply