我处理文件的本地副本,并在保存时将其上传到远程服务器。我可以使用什么版本控制系统?
这是我的情况:
- 我的文件位于远程服务器(Linux)上。
- 当我想在家里的 Windows 计算机上编辑文件时,我的编辑器 (PSPad) 会下载一个副本。
- 当我保存文档时,我的编辑器会将其上传到服务器,覆盖以前的版本。
编辑:需要明确的是,我没有完整项目的本地副本 - 我只有编辑单个文件时的临时本地副本。我不认为 TortoiseCVS 可以用它吗?
是否有版本控制系统(最好是 GUI 驱动的)可以处理这种情况?
附加信息:
- 我可能无法在远程服务器上安装复杂的软件,但可以在我自己的计算机上安装。
- 并发版本系统(CVS)安装在远程服务器上。
- 上传/下载通过 Bitvise Tunnelier 设置的 FTP 到 SFTP 桥接。
Here's my situation:
- My files are on a remote server (Linux).
- When I want to edit a file at home on my Windows machine, my editor (PSPad) downloads a copy.
- When I save the document, my editor uploads it to the server, overwriting the previous version.
Edit: Just to be clear, I don't have a local copy of my complete project — I just have a temporary local copy of a single file when I edit it. I don't think TortoiseCVS works with that?
Is there a version control system, preferably GUI driven, that can handle this situation?
Additional info:
- I probably can't install elaborate software on the remote server, but can on my own computer.
- Concurrent Versions System (CVS) is installed on the remote server.
- Uploading/downloading goes through an FTP-to-SFTP bridge set up with Bitvise Tunnelier.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我会推荐 SVN 而不是 CVS,但不要将版本控制系统与发布混淆。出版并不是两者的特点。版本控制系统是数据库、存储库,用于跟踪文件修改。例如,SVN 有钩子,您可以附加脚本来导出或更新虚拟主机中的文件,但这并不容易设置。
就您而言,安装并使用版本控制系统,无论如何,您都会了解其中的好处。我将在连接到此版本控制系统的服务器中保留所有内容的本地副本,并使用 ftp 上传进行发布。这是我多年来单独开发的标准工作环境。
I would recommend SVN over CVS, but don't confuse versioning system with publishing. Publishing is not a feature of neither. Versioning systems are databases, repositories that keep track of your files modifications. SVN for example has hooks and you can attach scripts that will make an export or update files in your virtual hosts, but this is not easy to set up.
In your case, install and use a versioning system, whatever and you'll understand the benefits. I would keep a local copy of everything in the server connected to this versioning system and use the ftp upload to publish. This was my standard working environment for years of solo development.
如果您正在寻找带有 GUI 的 CVS 客户端,您可以尝试 TortoiseCVS。
Well if you are looking for a CVS client with GUI, you could try TortoiseCVS.
为什么不能在本地计算机上使用 CVS 客户端?
Why can't you use a CVS client on your local machine?
如果您要使用本地存储库,您可以使用任何您想要的系统。这取决于你更喜欢哪一个。如果您打算使用 CVS,那么您可以使用远程计算机来为存储库提供服务。
无论哪种方式,您都会想要改变您的流程。您需要从存储库中签出项目的副本,然后对其进行软木塞并提交更改。然后,您可以将更改后的文件推送到托管它们的服务器。
就建议而言,我不得不说,如果您是版本控制新手,SVN 或 Git 可能是最好的选择,因为它们似乎是最受欢迎的(我自己使用 SVN)。
You can use any system you want if youre going to use a local repository. It depends on which on you prefer. If you are going to use CVS then you could use the remote machine to serve the repository.
Either way youll want to change your process. Youll need to checkout a copy of your project form the repository then cork on it and commit changes. Then you would push the changed files out to the server youre hosting them on.
As far as recommendations id have to say if youre new to version control SVN or Git would probably be the best choices as they seem to be the most popular (i use SVN myself).