简体   繁体   English

如何在最开始的提示下登录 Git Bash?

[英]How do I log in to Git Bash at the very beginning prompt?

I am literally brand spanking new at coding.我在编码方面确实是一个全新的品牌。 (Learning online how to become a Full Stack Developer) I am stuck at the command line prompt. (在线学习如何成为全栈开发人员)我被困在命令行提示符下。 It's not letting me log in. There isn't a place for me to even try to log in.它不允许我登录。我什至没有地方可以尝试登录。

I am a Windows 10 user.我是 Windows 10 用户。 And at the very top of the terminal box where it has the minimize, restore, close ... it says: /usr/bin/bash --login -i在终端盒的最顶部,它有最小化、恢复、关闭......它说: /usr/bin/bash --login -i

Can you please help me?你能帮我么? I am really stuck and cannot go any further.我真的被卡住了,不能再进一步了。 I'm not in a classroom setting, so I can't raise my hand and ask the instructor for help.我不在课堂环境中,所以我无法举手向讲师寻求帮助。

Thank you sooooo much!非常感谢!

With Gratitude, Angela心存感激,安吉拉

There's no need to log in;无需登录; you're simply at a normal bash shell prompt.你只是在一个普通的bash shell 提示符下。

The --login argument means that the shell you're using is a login shell. --login参数表示您使用的外壳是登录外壳。 What this means is not very interesting in a Windows environment, but it controls which files are read at startup and some other attributes of the shell process itself.这意味着什么在 Windows 环境中不是很有趣,但它控制在启动时读取哪些文件以及 shell 进程本身的一些其他属性。

Since there's no login prompt, you just enter commands as normal and they'll be executed.由于没有登录提示,您只需像往常一样输入命令,它们就会被执行。 For example, you could type echo foo and that command would be executed, printing foo and a newline.例如,您可以键入echo foo并且该命令将被执行,打印foo和换行符。

On a Unix system, you'd need to log in to access a prompt so the system knows what user to run commands as, but on Windows the Git Bash commands are simply associated with your normal Windows user account.在 Unix 系统上,您需要登录以访问提示,以便系统知道以什么用户身份运行命令,但在 Windows 上,Git Bash 命令仅与您的普通 Windows 用户帐户相关联。

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

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