amitsaha / gitbackup

Tool to backup your Bitbucket, GitHub and GitLab repositories
MIT License
194 stars 33 forks source link

Add support for bare repositories #52

Closed steveh closed 3 years ago

steveh commented 3 years ago

Fixes #31 , based on @jvmatl's work.

I called it bare to match Git vocabulary though.

Repos will be cloned to reponame.git.

amitsaha commented 3 years ago

This is great @steveh - thank you. I will take a look in the next few days.

KlausNie commented 3 years ago

I've been toying around with the -bare flag. It seems it mirrors the repository, but only the default branch. Is that intended? My understanding was, that it copies the whole repository structure, so also any remote branches that are there. Did I misunderstand something there?