简体   繁体   English

在subversion中存储图像文件,psd文件,ai文件,flash

[英]Storing image files, psd files, ai files, flash in subversion

Can I store large amounts of image files in subversion. 我可以在subversion中存储大量的图像文件。 My designers usually create these designs and store them anywhere on their pc and there's no system. 我的设计师通常会创建这些设计并将它们存储在PC上的任何位置,而且没有系统。 Can I store the files in an svn repository. 我可以将文件存储在svn存储库中。 That way I can also protect my data against unauthorized access and its also easier to archive. 这样我也可以保护我的数据免受未经授权的访问,也更容易存档。

What are your comments and is there any better way to do this? 你有什么意见,有没有更好的方法呢?

Thanks! 谢谢!

Yes, you can store whatever you want in an SVN repository. 是的,您可以在SVN存储库中存储您想要的任何内容。 There are no restrictions on file types or anything. 文件类型或任何内容没有限制。

I would use Subversion over Git for binaries. 我会使用Subversion over Git来获取二进制文件。 Git has no locking given its distributed nature, which is a problem for binary files, when conflicts arise from 2 or more people updating the same file, then attempting a merge. Git没有锁定,因为它的分布式性质,这是二进制文件的问题,当2个或更多人更新同一文件,然后尝试合并时发生冲突。 Since your also concerned about security, Subversion has granular ACLs so you can lock down specific folders to your designers. 由于您还关心安全性,Subversion具有精细ACL,因此您可以将特定文件夹锁定到设计人员。

I would also not recommend Git for graphic designers. 我也不会向平面设计师推荐Git。 Git is fine for programmers, but for designers who just want to "save a file", its way to complex. Git对于程序员来说很好,但是对于那些只想“保存文件”的设计师来说,它是复杂的。 Tortoise SVN for Subversion is easy to use for the non-programmer types. Tortoise SVN for Subversion易于用于非程序员类型。

You can but it's not made for it. 你可以,但它不是为它做的。 Git, SVN are made to manage text with line return (source code). Git,SVN用于管理带行返回的文本(源代码)。

Other than that their can't make a diff so every time you commit a psd git is going to save it completely. 除此之外,他们无法做出差异所以每次你提交psd git都会完全保存它。 You repository is going to grow very fast. 您的存储库将快速增长。

Take a 150mb PSD, say the designer change it 5 times and commit it each time, you end up with a repository of 750Mb! 拿一个150mb的PSD,说设计师改变它5次并每次提交它,你最终得到750Mb的存储库! The problem is even worst with git where you need to download the all repository with the complete history locally. 使用git时,问题甚至更糟,您需要在本地下载具有完整历史记录的所有存储库。

So it's going to work, but it's certainly not the right tool for large bitmap file where you want to control history (certainly with different file name) and sync independently. 所以它会起作用,但它肯定不是大型位图文件的正确工具,你想要控制历史(当然使用不同的文件名)并独立同步。

We stored thousands of images in SVN. 我们在SVN中存储了数千个图像。 And when you want to synchronize for the first time it takes long hours, sometimes a day -in a 100MBit network-. 当你想第一次同步它需要很长时间,有时一天 - 在100MBit网络 - 。 Once completed the synch. 一旦完成同步。 operation then it works quite well. 操作然后它运作良好。

This is my experience. 这是我的经历。 I don't know what is the best way. 我不知道最好的方法是什么。

Alternatively you could use "git" which will give you a local repository as well. 或者你可以使用“git”,它也会为你提供一个本地存储库。 The advantage is that you can "check in" temporarily on your local box without transferring large files to the server. 优点是您可以在本地盒子上临时“登记”,而无需将大文件传输到服务器。 Once your designers have the final product they can "push" it to the master repository. 一旦您的设计师拥有最终产品,他们就可以将其“推送”到主存储库。

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

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