当我可以使用GitHub桌面界面时,为什么还要学习Git? [英] Why bother learning Git when I can use GitHub desktop interface?

查看:71
本文介绍了当我可以使用GitHub桌面界面时,为什么还要学习Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个菜鸟问题,因此请耐心等待:
我刚开始使用Git,却无法弄清楚为什么可以使用GitHub桌面界面时学习Git的点点滴滴?
它更快,更直观.总而言之,Git只是一个版本控制环境.
我在这里想念什么吗?

This is a noob question so treat with patience please:
I just started using Git, and cannot figure out why should I bother learning the bits and bytes of Git when I can use the GitHub desktop interface?
It's much faster and more intuitive. And all in all, Git is only a version control environment.
Am I missing something here?

推荐答案

通过"GitHub桌面接口",我假设您的意思是"Windows的GitHub". Windows的GitHub无法完成命令行Git可以做到的一切.它只是围绕最常见的Git命令的UI.例如,上次使用它时,您无法隐藏,合并,修改,管理遥控器等.

By "GitHub Desktop Interface" I assume you mean "GitHub for Windows". GitHub for Windows can't do everything that command-line Git can. It is just a UI around the most common Git commands. For example, last time I used it, you couldn't stash, cherrypick merge, commit amend, manage remotes, etc.

那将是我至少学习一些Git命令行的观点.尽管我确实同意,要查看文件已更改的差异,或只选择几个文件以使用复选框提交,UI工具可能会更容易(我经常使用SourceTree直观地查看更改,并使用命令行进行结帐,分支,合并等).

That would be my argument for learning at least some Git command line. Though I do agree that for seeing a diff of what files has changed, or selecting only a few files to commit with checkboxes, a UI tool can be easier (I frequently use SourceTree to visually review changes, and the command line for checkouts, branching, merging, etc).

如果实际上是通过"Git的位和字节"来理解.git文件夹中的文件,blob和树的工作方式,那么我想您真的不需要 来了解这些东西,但是对我来说,这就像是问为什么我只需要转动钥匙时为什么需要知道内燃机的工作原理?" 我们中有些人真的很想知道东西是如何工作的... 我的意思是,我在大学期间学习了汇编和内存寻址,但这并不能直接应用于高级语言.但是,它确实有助于从根本上了解当您需要进行大量问题解决时内部的情况.

If by "bits and bytes of Git" you actually mean understanding how the files, blobs and trees work inside the .git folder, then I suppose you don't really need to know that stuff, but to me it is a lot like asking "why do I need to know how a combustion engine works when all I have to do is turn the key?" Some of us just really like to know how stuff works... I mean, I learned assembly and memory addressing in college, but that doesn't really apply to high-level languages directly. However, it does help understand at a fundamental level what is going on internally when you need to do heavy problem solving.

这篇关于当我可以使用GitHub桌面界面时,为什么还要学习Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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