I would like to create a backup of a git repository that I use for tracking a svn repository (with git-svn). Can I use git push –mirror for that purpose or would I lose any git-svn related information when I needed to restore the backup?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is possible
git pushorgit bundledo not include svn metadata.But according to
git svnintro, you could then try and restore those svn metadata.(disclaimer: not tested directly)
If you copied the repository from somewhere else (eg, from
repo.utsl.gen.nz) viagit-clone, or if you just blew it away, then you won’t have any SVN metadata – just commits.In that case, you need to rebuild your SVN metadata, for instance, for just keeping trunk up to date –
git-svnwill rebuild its metadata when you rungit-svn fetch.