SVN GIT 存储库服务器
我们的整个代码存储在远程服务器上的 SVN 存储库中。然而,我的团队赞成通过使用 git-svn 克隆 svn 存储库来使用 GIT 本地服务器。我面临的问题是如何确保我的本地团队成员能够克隆 git-svn 本地存储库,并且每个“推送”到本地 git-svn 存储库都会发布到 SVN 存储库。我想我可以运行一个 cron 作业,每 20 或 30 分钟将 git-svn 存储库与 SVN 存储库重新建立基础。
Our entire code is stored in a SVN respository on a remote server. However, my team here is in favor of using GIT local server by cloning svn repository using git-svn. The problem I face is how do I make sure that my local team members are able to clone the git-svn local repository and each "push" to local git-svn repository is published to SVN repository. I think I can run a cron job to rebase the git-svn repository with SVN repository every 20 or 30 min.
您还可以添加 post-receive 挂钩以将推送的更改提交到 svn。
You can also add post-receive hook to commit pushed changes to svn.