Post by Deleted on Dec 10, 2023 4:02:44 GMT
Git,FTP 服务器的最佳替代品? 欢迎 博客 FTP 服务器对于您的网站来说是一种过时的技术,而 GitHub 或 GitLab 则允许多人协作,同时以稳定和高效的方式保存不同的版本。 马克西姆·贝纳德 2020年4月8日 6分钟阅读 分享 推特标志 脸书标志 领英徽标 Git,FTP 服务器的最佳替代品? 几年前,FTP 是最流行的网站上线解决方案。我自己就是这样开始的,但它仍然存在一定的缺陷,这意味着今天很少有上。它已经让位于 GitHub 或 GitLab 等解决方案,除了将您的网站放到网上之外,还允许创建文件的版本控制。 因此,FTP 是管理和上传 PDF 文件等的良好解决方案。但当几个人在同一个项目上工作或者当你想回去时,使用起来会很复杂。 在本文中,我们将了解它的主要缺陷是什么,以及为什么在 GitHub 上建立项目是一个非常好的选择。此外,本文是上周文章的后续文章,我们还讨论了面向开发人员的 5 个免费工具 FTP 服务器:协作是主要缺陷 当尝试通过 FTP 服务器协作处理同一项目时,您必须确保您的同事没有修改文件,否则您将面临丢失修改的风险。
因此,我们可以用 2 到 3 个人来管理这个问题(同样,这需要一定的警惕性),但一旦我们开始与 4 个人或更多人一起处理同一个项目,事情就会变得更加复杂。这通常就是我们建立第一个 GIT 项目的原因:协作。在我看来,这仍然是此类工具的最大优势;它允许您一起开发 工作职能邮件数据库 而不会丢失任何代码行。 4个订单上线 您已经完成网站上全新功能的开发了吗?要以传统方式将其放到网上,您要么必须上传整个项目,要么只选择您已修改的文件(不要忘记单个文件)。 使用像 Git 这样的版本控制系统,只需记住 4 个命令: git add nameofyourfile git commit -m “Commit message” git Push 完成此操作后,您仍然需要获取服务器端代码来实现它。在那里,您所要做的就是执行 git pull,您的代码就在线了! 您甚至可以选择设置自动部署,这使得上线变得更加容易。 修改历史 当我们使用 Google Analytics 等网站分析数据时,我们可能会注意到一个变化:例如,页面访问量增加,或者会话时间比我们通常的时间长得多。在这些情况下,最好询问可能已进行的任何修改。通过版本控制系统,您可以查看您或您的团队成员制作的生产版本,以便了解发布的内容以及发布日期。 您还可以逐行查阅已进行的修改。
因此,有时了解用户行为的改变会非常有趣。 回去的可能性 当您开发一个网站(甚至一个应用程序)时,您可能会在修改后意识到修改会导致错误,或者相反,它没有达到预期的效果。如果它投入生产,如果版本控制系统尚未到位,那么返回可能会很复杂。 这种类型的系统允许您只需点击几下即可管理您的项目。所以如果有必要的话你可以回去。 如果正确使用该工具,例如为每个功能使用分支,事情会更简单。因此,您为要实现的每个新功能创建一个分支。您将把这个分支“合并”到您的主分支中。因此,您可以很好地可视化已实现的功能,并且可以非常简单地删除它们。 管理不同的环境 如果没有GIT等版本控制工具,我们如何管理不同的开发环境呢?将所有文件从一个文件夹移动到另一个文件夹?它非常过时,您可能会积累许多错误。如果您在 GIT 上建立了一个具有不同分支的项目,您只需将您的分支“合并”到您的主分支,您的新功能就会出现在您网站的预产品中。因此,您可以对其进行测试并一键将其投入生产。 正如您所看到的,使用 GIT 等工具被证明是真正的资产。在我看来,它们是任何优秀开发人员的必备工具之一,因为它们可以让您完全安全地工作并表现出一定的专业精神。
因此,我们可以用 2 到 3 个人来管理这个问题(同样,这需要一定的警惕性),但一旦我们开始与 4 个人或更多人一起处理同一个项目,事情就会变得更加复杂。这通常就是我们建立第一个 GIT 项目的原因:协作。在我看来,这仍然是此类工具的最大优势;它允许您一起开发 工作职能邮件数据库 而不会丢失任何代码行。 4个订单上线 您已经完成网站上全新功能的开发了吗?要以传统方式将其放到网上,您要么必须上传整个项目,要么只选择您已修改的文件(不要忘记单个文件)。 使用像 Git 这样的版本控制系统,只需记住 4 个命令: git add nameofyourfile git commit -m “Commit message” git Push 完成此操作后,您仍然需要获取服务器端代码来实现它。在那里,您所要做的就是执行 git pull,您的代码就在线了! 您甚至可以选择设置自动部署,这使得上线变得更加容易。 修改历史 当我们使用 Google Analytics 等网站分析数据时,我们可能会注意到一个变化:例如,页面访问量增加,或者会话时间比我们通常的时间长得多。在这些情况下,最好询问可能已进行的任何修改。通过版本控制系统,您可以查看您或您的团队成员制作的生产版本,以便了解发布的内容以及发布日期。 您还可以逐行查阅已进行的修改。
因此,有时了解用户行为的改变会非常有趣。 回去的可能性 当您开发一个网站(甚至一个应用程序)时,您可能会在修改后意识到修改会导致错误,或者相反,它没有达到预期的效果。如果它投入生产,如果版本控制系统尚未到位,那么返回可能会很复杂。 这种类型的系统允许您只需点击几下即可管理您的项目。所以如果有必要的话你可以回去。 如果正确使用该工具,例如为每个功能使用分支,事情会更简单。因此,您为要实现的每个新功能创建一个分支。您将把这个分支“合并”到您的主分支中。因此,您可以很好地可视化已实现的功能,并且可以非常简单地删除它们。 管理不同的环境 如果没有GIT等版本控制工具,我们如何管理不同的开发环境呢?将所有文件从一个文件夹移动到另一个文件夹?它非常过时,您可能会积累许多错误。如果您在 GIT 上建立了一个具有不同分支的项目,您只需将您的分支“合并”到您的主分支,您的新功能就会出现在您网站的预产品中。因此,您可以对其进行测试并一键将其投入生产。 正如您所看到的,使用 GIT 等工具被证明是真正的资产。在我看来,它们是任何优秀开发人员的必备工具之一,因为它们可以让您完全安全地工作并表现出一定的专业精神。