使用拇指驱动器上的工作目录时如何安全地使用 VSS?

发布于 2024-07-19 03:42:34 字数 185 浏览 7 评论 0原文

我知道将代码放入 VSS 一般而言就像将钱放入伯纳德·麦道夫 (Bernard Madoff) 运营的共同基金一样安全,但我没有能力为了颠覆而放弃它。

也就是说,我需要能够在两台机器上编写代码,我正在考虑将代码签出到闪存驱动器。

有人提前知道我应该/不应该做什么以避免失去工作吗? 我需要确保驱动器号保持不变吗?

I know putting code into VSS in general is as safe as putting money into a mutual fund run by Bernard Madoff, but I don't have the luxury of ditching it for subversion.

That said, I need to be able to write code on two machines, I'm considering checking out code to a flash thumb drive.

Anyone know in advance what I should/shouldn't do to avoid loss of work? Do I need to ensure the drive letter stays the same?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

顾挽 2024-07-26 03:42:34

与将其签出到机器内安装的驱动器应该没有任何不同。 就操作系统而言,拇指驱动器就像硬盘一样,只是速度较慢。

Shouldn't be any different than if you checked it out to a mounted drive within the machine. As far as the OS is concerned, the thumb drive is just like your HDD, just slower.

网名女生简单气质 2024-07-26 03:42:34

我不知道你问的具体问题。 我怀疑如果你保持两台机器之间的驱动器号一致就可以了。 我会质疑您是否真的需要从两台计算机访问 VSS。

但是,如果您担心可能会丢失工作,那么当您完成计算机 A 上的工作后,检查您的更改对我来说更有意义,这样您就可以检查计算机 B 上的文件,反之亦然。反之亦然。 否则,这意味着您将在拇指驱动器上进行未签入的更改,这些更改很容易在运输过程中丢失。

您应该为项目创建一个专用分支,以便可以签入部分完成的更改,而不会破坏其他人的构建。

I don't know about the specific question you're asking. I suspect that it would be fine if you kept the drive letter consistent between the two machines. I would question whether you really need to access VSS from both machines anyway.

However, if you're concerned about potential loss of work, it would make more sense to me to check in your changes when you're done working on computer A, so that you can then check out the files on computer B, and vice versa. Otherwise, the implication is that you would have un-checked-in changes on the thumb drive which could easily be lost in transit.

You should create a dedicated branch of your project so you can check-in partially complete changes without breaking anyone else's build.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文