什么是版本控制系统?Git 有什么用? [英] What is a version control system? How is Git useful?

查看:20
本文介绍了什么是版本控制系统?Git 有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比如我在 Rails 上做 ruby​​ 并使用 git 进行版本控制.

like for example i am doing ruby on rails and using git for version control.

推荐答案

Git 的最大优点是与其他源代码控制系统不同,Git 可以离线工作.无论您是在飞机上还是在家里,还是在没有网络连接的遥远地方,都没有关系.您仍然可以将更改提交到本地 git 存储库 &连接后将其推送到中央服务器(如果有).使 Git 非常强大的另一件事是分支".如果您想修复错误或想尝试新的东西而不损害您当前的工作代码,只需创建一个分支 &在...上下功夫.当您的分支中一切正常时,您可以将其合并到 master 分支.

The best part about Git is unlike other source control systems, Git can work offline. Doesn't matter whether you are on a plane or at home or some distant place with no connectivity. You can still commit changes to your local git repository & push it to centralized server (if you have one) when you are connected. One more thing which makes Git very powerful is 'Branches'. If you want to do a bug fix or want to try something new without harming your current working code, just create a branch & work on it. When things ae working fine in your branch, you can merge it to the master branch.

我认为 Git 比其他任何 SCM 都提供了更多的灵活性.

I would say Git provides more flexibility than anything other SCM.

这篇关于什么是版本控制系统?Git 有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆