在subversion中存储图像文件、psd文件、ai文件、flash
我可以在 subversion 中存储大量图像文件吗?我的设计师通常会创建这些设计并将它们存储在电脑上的任何位置,并且没有系统。我可以将文件存储在 svn 存储库中吗?这样我还可以保护我的数据免受未经授权的访问,并且也更容易存档。
您有何评论?是否有更好的方法来做到这一点?
谢谢!
Can I store large amounts of image files in subversion. My designers usually create these designs and store them anywhere on their pc and there's no system. Can I store the files in an svn repository. 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的,您可以在 SVN 存储库中存储您想要的任何内容。对文件类型或任何内容都没有限制。
Yes, you can store whatever you want in an SVN repository. There are no restrictions on file types or anything.
对于二进制文件,我会使用 Subversion 而不是 Git。鉴于其分布式特性,Git 没有锁定,这对于二进制文件来说是一个问题,当两个或更多人更新同一文件然后尝试合并时会出现冲突。由于您还关心安全性,Subversion 具有精细的 ACL,因此您可以将特定文件夹锁定给您的设计人员。
我也不推荐图形设计师使用 Git。 Git 对于程序员来说很好,但是对于只想“保存文件”的设计师来说,它的方式就复杂了。 Tortoise SVN for Subversion 对于非程序员类型来说很容易使用。
I would use Subversion over Git for binaries. 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. Since your also concerned about security, Subversion has granular ACLs so you can lock down specific folders to your designers.
I would also not recommend Git for graphic designers. Git is fine for programmers, but for designers who just want to "save a file", its way to complex. Tortoise SVN for Subversion is easy to use for the non-programmer types.
你可以,但它不是为此而生的。 Git、SVN 是用来管理带有换行符的文本的(源代码)。
除此之外,他们无法进行比较,因此每次您提交 psd 时,git 都会完全保存它。您的存储库将会增长得非常快。
拿一个 150mb 的 PSD 来说,假设设计师对其进行了 5 次更改并每次都提交,那么您最终会得到一个 750Mb 的存储库!对于 git,这个问题更为严重,您需要在本地下载具有完整历史记录的所有存储库。
所以它会起作用,但对于您想要控制历史记录(当然使用不同的文件名)并独立同步的大型位图文件来说,它肯定不是正确的工具。
You can but it's not made for it. Git, SVN are made to manage text with line return (source code).
Other than that their can't make a diff so every time you commit a psd git is going to save it completely. 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! The problem is even worst with git where you need to download the all repository with the complete history locally.
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.
我们在 SVN 中存储了数千张图像。当您第一次想要同步时,需要花费很长时间,有时甚至需要一天(在 100MBit 网络中)。一旦完成同步。操作之后效果非常好。
这是我的经验。我不知道什么是最好的方法。
We stored thousands of images in SVN. And when you want to synchronize for the first time it takes long hours, sometimes a day -in a 100MBit network-. Once completed the synch. operation then it works quite well.
This is my experience. I don't know what is the best way.
或者,您可以使用“git”,它也会为您提供本地存储库。优点是您可以在本地机器上临时“签入”,而无需将大文件传输到服务器。一旦您的设计人员获得最终产品,他们就可以将其“推送”到主存储库。
Alternatively you could use "git" which will give you a local repository as well. 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.