Can I have one project in two SVN repositories?

后端 未结 12 1321
野性不改
野性不改 2020-12-10 07:03

Our I.T. dept doesn\'t allow connections to the SVN server from outside the physical office. (They\'re just kind of like that.) I need to work on projects when I\'m not at t

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 07:52

    Short answer: no. You can't share history between repositories.

    The long answer: This is a weakness of centralized systems like Subversion. Distributed version control solutions (like git) don't have this problem. Each "working copy" is a repository and commits can be made off-line and synched between repositories (or to a central "official" repository) at a later time.

    What you'd need is some way to work locally on your computer with a local repository and sync changes back and forth when you are able. It just so happens that you've got a few options:

    • git includes git-svn which provides this kind of functionality. git has a learning curve, but this has improved with the 1.6.x series.

    • svk no longer seems to be very actively developed, but it does work reasonably well.It works very much like Subversion. It allows you to keep local mirrors of your official repositories, make commits to local branches on them and push those changes back to the official repository when you are able. It's not truly distributed in the same sense as git, but it's probably a better fit for your situation and less of a conceptual change than git.

提交回复
热议问题