我如何使用水银?
我假设 Mercurial 是为了更新网站并存档旧内容?易于测试之类的东西吗?
我的问题是,我到底应该如何开始,有人可以给我一个使用 Mercurial 和使用以下技术的速成课程吗?
Notepad++ for coding
FTP
PHP/MySQL
Jquery & other js libraries
我使用 Windows,希望让事情变得相当简单。我目前正在开发 1 个网站,希望安装某种 CVS 系统。或者我应该坚持使用记事本++中当前的编辑文件并通过ftp方法上传并每隔一段时间备份所有内容?
有什么想法吗?
编辑:我正在做 http://bugtracker.gttools.com/public/wiki/ bluehost/Mercurial 现在就可以尝试“安装”它。
I'm assuming Mercurial is for having an updated website and it archiving the old stuff? Easy to test things and such?
My question is, how exactly should I get started and can somebody give me a crash course in using Mercurial and using the following techs below:
Notepad++ for coding
FTP
PHP/MySQL
Jquery & other js libraries
I use windows and would like to keep things fairly simple. I'm developing 1 website currently and want some kind of CVS system in place. Or should I just stick to my current edit file in notepad++ and upload via ftp method and make a backup copy of everything every once and a while?
Any thoughts?
EDIT: I'm doing http://bugtracker.gttools.com/public/wiki/bluehost/Mercurial right now in order to try and 'install' it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
除了官方指南。
一定要尝试转向使用某种形式的版本控制(SVN、git 或 Mercurial),因为它会节省你的时间。
I'd definitely recommend taking a read through the excellent HGinit http://hginit.com/ site in addition to the official guide.
Definitely try and move across to using some form of version control (SVN, git or mercurial) as it'll save you down the line.
Mercurial 是一个分布式版本控制系统,很像 Git,但据称稍微简单一些。
可以在此处找到 Joel Spolsky 的精彩教程。
如果您阅读 https://www.mercurial-scm.org/guide 下的 < strong>基本工作流程您应该能够在使用 Notepad++ 等编辑文件时弄清楚如何使用它。
Mercurial is a distributed version control system, much like Git but allegedly slightly simpler.
A good tutorial by Joel Spolsky can be found here.
If you read up on https://www.mercurial-scm.org/guide under Basic Workflow you should be able to figure out how to work with it while editing files using Notepad++ etc.
从你的问题来看,听起来你对版本控制了解不多(就像你对它是什么以及它为什么有用有一个非常基本的了解)。因此,也许您应该做的第一件事就是首先阅读一般内容。
但就使用 Mercurial 而言,我认为您不会比 Joel 的教程更好地了解如何使用它以及为什么它如此出色,您可以在此处找到该教程 hginit 教程
From your question it sounds like you don't know much about version control (like you have a very basic grasp of what it is and why it is useful). So perhaps the first thing you should do is read up on that in general first of all.
But in terms of using Mercurial I don't think you will find a better insight into how to use it and why it is so good than Joel's tutorial, which you can find here hginit Tutorial
HGInit 是一个很好的 Mercurial 教程。基本上,您必须在要受版本控制的目录中执行
hg init
。如果你不喜欢命令行,你也可以使用 GUI 工具,比如 tortoisehg。如果我没记错的话,您还想将最新版本上传到网站。如果我是对的,ftp 访问对此是不够的(除非您定义一个提交后挂钩,使用 ftp 上传目录)。
HGInit is a good tutorial for mercurial. Basically you have to
hg init
in the directory you want to be under version control. If you don't like the command line, you can also use gui tools, like tortoisehg.If I'm not mistaken you also want to upload the latest version to the website. If I'm right ftp access won't be enough for this (unless you define a post-commit hook, that uploads the directory using ftp).
不确定你在这里的意思。 Mercurial(以及所有版本控制系统)允许您在进行更改时存档、标记和管理您的版本,以便您可以跟踪一起的代码,并在需要进行并行开发时进行分支。
您应该在进行更改时检查它们。如果开发过程中出现任何问题,您可以回滚到上一个好的版本。这是确保您不会因为忘记签到而浪费日复一日的工作的好方法。
尽早签到,经常签到。
Not sure what you mean here. Mercurial (and all version control systems) lets you archive your changes as you make them, label and manage your releases so you can track code that goes together, and branch when you need to do parallel development.
You should be checking in your changes as you make them. If anything goes wrong during development, you can roll back to the last good version you had. It's a great way to make sure that you don't lose days and days of work because you forgot to check in.
Check in early, check in often.