简体   繁体   English

Noobie Git设置问题

[英]Noobie Git setup questions

I was having question about the installing process of GitHub and what each option results in. I have never had any experience using the terminal or command line before either. 我对GitHub的安装过程以及每个选项的结果有疑问。我之前从未有过使用终端或命令行的经验。 So what exactly are the Windows Explorer options going to do and the differences betwen them and what I should choose? 那么Windows资源管理器选项究竟要做什么以及它们与我应该选择的区别呢? here in this image: http://help.github.com/images/bootcamp/bootcamp_1_win_install_5.jpg 在这张图片中: http//help.github.com/images/bootcamp/bootcamp_1_win_install_5.jpg

And again with this image http://help.github.com/images/bootcamp/bootcamp_1_win_install_7.jpg I don't understand what the different choices are giving me and will result in? 再次使用此图像http://help.github.com/images/bootcamp/bootcamp_1_win_install_7.jpg我不明白不同的选择给了我什么,并将导致?

Sorry for such a noobie question but I haven't managed to find an explantaion of the points listed so if you could shed some light on these areas would be greatly appreciated thanks! 很抱歉这样一个noobie问题,但我没有设法找到所列点数的解释,所以如果你能对这些方面有所了解,将不胜感激!

All images are from the Help.GitHub set up tutorial: help.github (dot) com/win-set-up-git/ 所有图片均来自Help.GitHub设置教程:help.github(dot)com / win-set-up-git /

if you don't want to use the command line, you don't care about Git Bash. 如果你不想使用命令行,你不关心Git Bash。 Git GUI is nice, though, and you might want to use it. 但是,Git GUI很不错,你可能想要使用它。 For the rest, the defaults are very likely to be what you want. 对于其余部分,默认值很可能是您想要的。

The Windows Explorer options add items to the Explorer menu you get when you right-click on a folder. Windows资源管理器选项将项目添加到右键单击文件夹时获得的资源管理器菜单中。 Bash gets you a command-line shell that you can play around with to use Git commands directly; Bash为您提供了一个命令行shell,您可以使用它来直接使用Git命令; Git GUI is the graphical front-end for Git. Git GUI是Git的图形前端。 Eventually, you might need both. 最终,您可能需要两者。

As for the line endings: Windows uses different line-endings in text files than UNIX does. 至于行结尾:Windows在文本文件中使用与UNIX不同的行结尾。 As Git was originally made for the Linux kernel, its line-endings are \\n (LF) characters - on windows, it's \\r\\n (CRLF). 由于Git最初是为Linux内核而制作的,因此它的行结尾是\\ n(LF)字符 - 在Windows上,它是\\ r \\ n(CRLF)。 Git can treat (and in the beginning did treat) everything as a binary, though, so you can turn the conversion behavior off completely. 但是,Git可以将所有内容视为二进制文件,因此您可以完全关闭转换行为。

Also look at TortoiseGit , which may be helpful. 另请参阅TortoiseGit ,这可能会有所帮助。

The default settings msysgit picks are all you need. 默认设置msysgit选择是您所需要的。 It'd be nice if they simply had an "express" install that didn't bug you with all these settings you know nothing about. 如果他们只是简单地进行了“快速”安装,并且没有对您所知的所有这些设置造成错误,那就太好了。

I would also advise you don't turn off the line ending setting. 我还建议你不要关闭行结束设置。 It's best you leave that on the default, especially if you work with non-windows developers. 最好将其保留为默认值,特别是如果您与非Windows开发人员合作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM