简体   繁体   English

已存在目录上的SVN

[英]SVN over a directory that already exists

I've been reading about using a zsh template file on a scientific computing website . 我一直在阅读有关在科学计算网站上使用zsh模板文件的信息 I've never used subversion before but am attempting to learn how to do so. 我以前从未使用过Subversion,但正在尝试学习如何使用。 Anyhow, they have a repository on Google code that has the following instructions: 无论如何,他们在Google代码上都有一个存储库 ,其中包含以下说明:

cd /Library cd /库
sudo svn co http://zsh-templates-osx.googlecode.com/svn/trunk/Library/init sudo svn co http://zsh-templates-osx.googlecode.com/svn/trunk/Library/init
cd /private cd /私人
sudo svn co http://zsh-templates-osx.googlecode.com/svn/trunk/etc sudo svn co http://zsh-templates-osx.googlecode.com/svn/trunk/etc

I have no problem with the first two lines because there is no folder located in /Library called init. 我对前两行没有问题,因为/ Library中没有名为init的文件夹。 The problem I'm facing is with the second two lines because /private/etc already exists along with files that I presumably need. 我面临的问题是后两行,因为/ private / etc已经与我可能需要的文件一起存在。 If I run that last line, I'm afraid I'll overwrite any files located in that directory which I imagine would be disastrous. 如果我运行最后一行,恐怕我会覆盖该目录中的所有文件,而我认为这将是灾难性的。

Those links are http links. 这些链接是http链接。 Open them in your favorite browser and you will see what will be pulled. 在您喜欢的浏览器中打开它们,您将看到要拉的内容。

Those instructions are a bit strange, especially for /private . 这些指示有些奇怪,尤其是对于/private I would advise you to do the following: create a directory somewhere ( /home/you/zsh-templates for instance), and run those commands in /home/you/zsh-templates/Library and .../private ). 我建议您执行以下操作:在某个位置创建目录(例如/home/you/zsh-templates ),然后在/home/you/zsh-templates/Library.../private运行这些命令。 You'll get the contents there. 您将在那里获得内容。

Once you're sure that's what you need you can either repeat those in /Library and /private , or simply copy the files from your directory to their expected destination. 确定需要的内容后,可以重复/Library/private ,也可以将文件从目录复制到它们的预期目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM