Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8917943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:37:34+00:00 2026-06-15T05:37:34+00:00

Summary: What I’d like to accomplish is to periodically push a bare Git repository

  • 0

Summary:

What I’d like to accomplish is to periodically push a bare Git repository into Subversion so others can examine it, using an unattended script. I don’t need the opposite direction, SVN -> Git.

I hope someone will help me get this done. The other threads I’ve seen are oh-so-close to what I need, but none have the full, plausible solution. Pushing an existing git repository to SVN was extremely helpful.

My problem:

My employer maintains a Subversion server that has offsite backup, has redundancies, and is accessible by a web interface so my coworkers and managers can do casual reviews.

I have six projects under Git. (I have multiple machines, I do lots of speculative branching, and I commit frequently. Also, Xcode just works better with Git. Our SVN administrator agrees that Git is all but nonnegotiable for me.) I’ve been doing this by keeping a bare repo on my desktop machine (owned by my employer and on its premises) which all working copies track.

My employer would really prefer I didn’t do that; if he could provide an IT-grade Git server, he would. His compromise is that I find a way to get a launchd (cron) task to sync my desktop’s bare Git repo to a parallel repo on the SVN server.

My proposed approach (probably unsatisfactory):

I haven’t found any guides to cloning bare Git repos to Subversion, still less doing it unattended. My guess is that I have to do everything by way of a working copy, for which SVN syncing (but maybe not automation) is a solved problem.

My naïve process is:

  1. Clone a working copy that is never edited into /dont-touch, from the bare repo.
  2. While in the no-edits /dont-touch directory, git svn init <svn-url> -s
  3. Do the necessary git svn fetch and git svn rebase dance.
  4. Every night, per a script fired by launchd:
    4.1. cd /dont-touch
    4.2. git fetch
    4.3. git svn dcommit

The problems, as I see them:

I’m ignorant

Enough said.

This category includes all the things I haven’t thought of.

Interactivity

Our hope is that we can set this up, let the sync script fire every 24 hours, and forget it.

SVN authentication will, I assume, be cached and take care of itself after the first time it goes through, during the manual (1-3) setup. Git authentication would not be an issue, as the dont-touch working copy would be owned by the same user as the bare repo, and can be reached by file:///.

But my impression of syncing Git to SVN is that it is fragile, and will need interactive nips and tucks to avoid damaging the SVN repo, much less simply getting it to work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:37:38+00:00Added an answer on June 15, 2026 at 5:37 am

    You may have a look at SubGit as git-svn replacement. Since 2.0 it allows to link local Git with remote Subversion repository. You run once:

    $ subgit configure --svn-url <URL_of_SVN_project_root> repos.git
    # edit repos.git/subgit/config, repos.git/subgit/authors.txt, and repos.git/subgit/passwd
    
    $ subgit install repos.git
    # now just work with repos.git as with usual git repository, but prefer "git pull --rebase" rather that "git pull" and "git merge --no-ff" rather than "git merge"
    

    where URL_of_SVN_project_root is the URL that contains trunk/branches/tags directories.

    Then clone the repository ‘repos.git’ and push/pull from/to it (optionally setup the working copy git config this way). Special Git hooks in ‘repos.git’ will synchronize it with SVN. Note that currently SubGit 2.0 is at eap stage, but I think it’s more reliable that git-svn setup you described.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Summary: Can i get registry creation, modification, and last write times like i can
Summary: In a WCF REST service how can I handle incorrect input parameters using
Summary For some reason, git commands don't work the same when I am logged
Summary: I have passed the name of the id select tag into an Array.
SUMMARY How can I make my GUI application run on windows startup on a
Summary I have been looking at historical Australian Rules outcomes using excel with an
Summary When I execute a very simple program using Perl's Benchmark utility. I get
Summary of what im trying to accomplish: I play motorstorm on PS3 and for
Summary: When attempting to use marshalling to pass string data into a C++ DLL
Summary: Where can I find a reference to SQL Server file version numbers? Background:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.