简体   繁体   English

便携版控制?

[英]Portable version control?

Currently I do all of my work off of a flash drive. 目前我从闪存驱动器中完成了所有工作。 Keeps things portable, and I'm able to learn web development while I'm at work. 让事情变得便携,我可以在工作的同时学习Web开发。 Currently I run Portableapps with XAMPP, Notepad++, and Chrome installed on it. 目前我运行的是带有XAMPP,Notepad ++和Chrome的Portableapps。

My question is, does anyone know of a version control system that would work portably on a flash drive? 我的问题是,是否有人知道可以在闪存驱动器上移植的版本控制系统? I just learned about the importance of Version control, and I want to get started, I just need something that will work with my setup. 我刚刚了解了版本控制的重要性,我想要开始,我只需要一些适用于我的设置的东西。

Edit: Just to clarify, the whole thing should be able to run off the flash drive alone on a completely foreign computer. 编辑:只是为了澄清,整个事情应该能够在完全外国的计算机上独自运行闪存驱动器。 So if I go to Aunt Edna's house for a family get together, I can go on her computer, plug in my flash drive and just go. 因此,如果我去埃德娜阿姨的家里聚会,我可以去她的电脑,插上我的闪存驱动器然后去。 The Aunt Edna's of the world get very offended if you install anything but solitaire on their fancy new computer. 如果你在他们花哨的新电脑上安装除了单人纸牌之外的任何东西,埃德娜姨妈的世界会非常生气。 So it can't leave anything behind 所以它不能留下任何东西

Pick a distributed one. 选择分布式的。

GIT or Mercurial for example. 例如GIT或Mercurial。

之前有人问过这个问题: https//stackoverflow.com/questions/1109838/recommend-portable-source-control-setup2GB USB驱动器上的版本控制 - 第二个接受了答案( darcs看起来也很好)。

Mercurial is a good start. Mercurial是一个良好的开端。 A repository does not need to be stored on any server, you just create it where your data files are. 存储库不需要存储在任何服务器上,您只需在数据文件所在的位置创建存储库。 Also, there is a nice interface called TortoiseHG , which lets you use Mercurial out of Windows Explorer with ease. 此外,还有一个名为TortoiseHG的漂亮界面,可让您轻松地从Windows资源管理器中使用Mercurial。

Expanding off of Dan's Answer. 扩大丹的答案。

Git is almost completely file based. Git几乎完全基于文件。 As long as you have the files, it will work the same with any computer (given you have the command line stuff installed). 只要您拥有这些文件,它就可以与任何计算机一样工作(假设您安装了命令行内容)。

This is also good if you switch between a GUI Editor and the Command Line, as pretty much everything will stay saved (the files waiting to be committed, for example) 如果您在GUI编辑器和命令行之间切换,这也很好,因为几乎所有内容都将保存(例如,等待提交的文件)

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

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