Subversion 与生产代码不同步,更新 Subversion 的最简单方法 [英] Subversion out of sync with production code, easiest way to update subversion

查看:22
本文介绍了Subversion 与生产代码不同步,更新 Subversion 的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个 Subversion Repo/project,它是在 2 个月前最后更新的.在生产站点上进行了一些更改(是的,这不是我的想法,其他开发人员之一),现在我需要将这些更改添加到 subversion 存储库中.

So I have a Subversion Repo /project which was last updated 2 months ago. Some changes where made on the production site (Yeah not my idea, one of the other dev's) and now I need to add those changes into the subversion repo.

所以我压缩了生产文件/目录并将它们复制到我的本地开发箱上,还在我的开发箱上签出回购的最新副本.有许多新文件/目录以及一些当前文件中的一些更改.

So I've zipped up the production files/directories and copied them onto my local dev box, also checkout the latest copy of the repo on my dev box as well. There are a number of new files/directories as well as some changes in some of the current files.

将这些更改添加到 Subversion 中的最佳方法是什么?是否像将新文件从 zip 复制到本地 repo 项目并以这种方式提交一样简单?(我这样做了,但我没有看到所有的变化).

What would be the best approach to adding these changes into subversion? Is it as easy as copying the new files from the zip into the local repo project and committing that way? (I did this and I don't see all of the changes).

有什么想法吗?

注意:我使用的是命令行 svn no GUI

NOTE: I'm using the command line svn no GUI

是的,没有大的结构变化,只是添加了一些库(目录)并在现有脚本中添加了一些需要的功能

Yeah no large structural changes, just added some libraries (directories) and added some need functionality into the existing scripts

推荐答案

我会这样做:

  • 创建项目的新分支
  • 在您的开发箱上结帐分支
  • 将生产中的文件添加到分支结帐.
  • 添加/提交生产文件
  • 将分支合并到存储库中
  • 在解决所有冲突的同时诅咒更新生产的开发人员.

这篇关于Subversion 与生产代码不同步,更新 Subversion 的最简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆