学习和学习的先决条件是什么?了解Git? [英] What are pre-requisites for learning & understanding Git?

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

问题描述

我知道PHP和JavaScript(除HTML和CSS之外)的一小部分 - 足以为诸如博客(Wordpress),论坛(Vanilla论坛)等脚本提供现有插件。而且我是Windows用户。 / p>

我想了解/学习Git,以便我可以使用GitHub或其他任何有效的服务。那么,学习Git的前提是什么?



(PS:我在问这个,因为它看起来像Git需要一些Linux知识,还有一些BASH )

解决方案

我在Linux和Windows上都使用Git。在这两种环境下,我都只使用它的命令行界面。在Windows上安装时,您可以选择安装它,以便它只能在自己的窗口中运行的bash shell下运行,或者也可以将命令也导出到标准的Windows控制台环境中。当我在Windows平台上使用它时,我使用它安装的bash控制台和Windows控制台;无论哪种情况,现在更方便。



Git不需要太多的Linux知识,除了某些命令在其本质上有点像Linuxy(我自己的词) 。例如,git rm filename从系统和版本库中删除一个文件。 'rm'是Windows / DOS称为'del'的Linux版本。所以有一些你习惯的习惯用法。但他们对整体学习曲线并没有太多的贡献。



我看到有人提到没有人知道Git的全部内容。这可能是真的。但在开始使用它的几天之内,你会发现自己能够在没有阅读文档的情况下完成大部分日常工作。当你遇到那些不太常用的命令之一时,或者当你需要一些很难记住的命令切换时,只需要几次击键就可以完成。



有是一本免费的在线书籍: Pro Git 。这很棒。值得花时间去阅读它。我也碰巧喜欢使用Git进行版本控制(O'Reilly& Assoc)。如果你真的想内外学习Git,请按顺序阅读这两本书。此外,每个git命令都有一个与之关联的帮助页面,您可以通过在命令中附加 --help 来进行访问。例如: git checkout --help 会显示该命令的帮助页面。



如果您认真关于如今的编程,版本控制是一种你不能忽视的工具。 Git是学校目前最酷的孩子。你会很高兴你花时间学习使用它。


I know bits and pieces of PHP and JavaScript (besides HTML & CSS) — just enough to fork existing plugins for scripts like blogs (Wordpress), forums (Vanilla Forums), etc. And I am a Windows user.

I want to understand / learn Git so that I can use GitHub, or any other service like that effectively. So, what are the pre-requisites for learning Git?

(PS: I am asking this because it looks like Git requires some Linux knowledge, alongside some BASH and SSH.)

解决方案

I use Git on both Linux and Windows. Under both of those environments, I use its command-line interface exclusively. When installing on Windows you have the option to install it such that it will only work under a bash shell that runs in a window of its own, or to have the commands also exported into the standard Windows console environment as well. When I use it on my windows platform I use both the bash console it installs and the windows console; whichever happens to be more convenient at the moment.

Git doesn't require much Linux knowledge, except that some commands are sort of Linuxy (my own word) in their nature. For example, "git rm filename" to remove a file from both your system and from the repository. 'rm' is the Linux version of what Windows/DOS would call 'del'. So there are a few of these sorts of idioms you'll have to get used to. But they don't really contribute much to the overall learning curve.

I saw that someone mentioned that nobody knows all of Git by heart. That's probably true. But within a few days of getting started with it, you'll find yourself able to do most of the 'everyday' stuff without reading documentation. And when you get to one of those less commonly used commands, or when you need some command switch that is difficult to remember the documentation is only a few keystrokes away.

There is a book available free online: Pro Git. It's great. Well worth the time investment to read it. I also happen to like Version Control with Git (O'Reilly&Assoc). If you really want to learn Git inside and out, read those two books in that order. Additionally, every git command has a help page associated with it that you access by appending --help to the command. Example: git checkout --help will bring up the help page for that command.

If you're serious about programming nowadays, version control is a tool you can ill-afford to ignore. Git is the current coolest kid in the school. You'll be glad you invested the time in learning to use it.

这篇关于学习和学习的先决条件是什么?了解Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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