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

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

问题描述

关于Git的最好的部分是如何使用git来进行版本控制。与其他源代码控制系统不同,Git可以脱机工作。无论您是在飞机上还是在家中,或者是在没有连接的地方,都无所谓。您仍然可以将更改提交到您的本地git存储库&在连接时将其推送到中央服务器(如果有的话)。还有一件让Git非常强大的东西是'分支'。如果您想要修正错误或想要尝试新的东西而不损害当前的工作代码,只需创建一个分支&在...上下功夫。当你的分支中工作正常时,你可以将它合并到master分支中。

b $ b

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

解决方案

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.

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

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

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