gpt4 book ai didi

ruby-on-rails - 将远程 git 存储库添加到当前 git svn 存储库的风险

转载 作者:太空狗 更新时间:2023-10-29 14:17:12 26 4
gpt4 key购买 nike

我在一个使用 SVN 作为中央存储库的 Rails 项目中工作,但我在(本地)使用 git-svn,我想添加一个远程,我将只推送 master 用于测试目的(我将推送到 Heroku)。

我从 chapter 9.1 of Pro Git 读到这个(我的重点):

Don’t rewrite your history and try to push again, and don’t push to a parallel Git repository to collaborate with fellow Git developers at the same time. Subversion can have only a single linear history, and confusing it is very easy. If you’re working with a team, and some are using SVN and others are using Git, make sure everyone is using the SVN server to collaborate — doing so will make your life easier.

我不会与其他 Git 开发人员合作(其他人都在使用 SVN),但在设置它之前,我只想确定这样做是否有任何相关风险,如果是这样,我应该/可以做什么。

最佳答案

如果它只是为了推送到一个存储库,以便您可以 check out /构建/部署,那不会有什么坏处。你注意到的那个警告在那里陈述,这样你就不会开始在你使用 git-svn 的 repo 上做疯狂的事情,因为修改的方式与其他也使用 git-svn(加上其他限制)的开发人员相关保存在 git-svn 上。

关于ruby-on-rails - 将远程 git 存储库添加到当前 git svn 存储库的风险,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44789194/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com