Mac 10.4 同步文件
我正在使用 Google 代码 svn 并设置了存储库。 在存储库中,我包含 TinyMCE,现在我想升级此文件夹中的所有文件。 我遇到的问题是,如果我在本地签出,然后下载他们的新版本并替换文件夹,它会清除我所有的 svn 文件。 因此实际上将其从版本控制中删除。
我想知道更新这些文件夹和文件夹的最佳方法是什么? 文件但保持 svn 文件完整? 我一直在寻找,但似乎找不到任何简单的方法。
I am using Google code svn and have a repository setup. Inside the repository I am including TinyMCE and now I want to upgrade all the files in this folder. The problem I am having is if I checkout locally and then download their new version and replace the folder it wipes out all my svn files. So in effect removes it from version control.
I was wondering what is the best method to update those folders & files but keep the svn files intact? I have been searching but can't seem to locate any simple method.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能需要使用
ditto
命令。很简单:
You may want to use the
ditto
command.It's as simple as:
您可能想要的是设置 svn:externals,或者您可以还想看看 Piston 之类的东西。
What you may want is to setup svn:externals, or you may also want to take a look at something like Piston.
像
tar
这样简单的东西不会破坏.svn
目录。 或者rsync
(除非你要求它),或者unzip
,或者编写一个简单的shell脚本,或者...Something as simple as
tar
will not nuke the.svn
directories. Orrsync
(unless you ask it to), orunzip
, or writing a simple shell script, or...