Create/restore repos only from repo folder

lets say i have only a file based backup of the repos folder - would it be possible to restore a single repo out of it to a working github repository ?

And if so how ?

Yes, it should be quite simple. Gitea stores repositories in the bare format which basically means it doesn’t reproduce the working tree files, just stores the Git objects. You can still use most Git commands with them.

To push everything in your repository to GitHub, run these commands:

cd /your/git/directory.git
git remote add github
git push github --all
1 Like

i knew thats possible, thx a lot !

1 Like