gpt4 book ai didi

linux - Windows 电脑上的 Git Bash 和 Linux 有什么关系?

转载 作者:可可西里 更新时间:2023-11-01 11:27:05 28 4
gpt4 key购买 nike

我已经在我的 Windows 机器上安装了 Git Bash。它的行为与普通的命令提示符非常不同。

为什么会这么不一样?它似乎表现得像 Linux。仅仅是类似于 Linux 的命令编写风格,还是 Linux 包含在 Git Bash 中?

最佳答案

What is the relationship between Git Bash and Linux

Linux 和 Bash 之间的唯一关系是 Bash 通常用于 Linux 系统(以及其他系统)。 Git Bash 只是一个 Bash,它被设置为能够找到 Git 工具。这在 Linux 系统上通常不是必需的(因此您不会在 Linux 系统上找到任何称为 Git Bash 的东西)。

It behaves very differently from the normal command prompt.

这是一个不同的 shell(和一个不同的终端仿真器)。

It seems to behave like Linux.

无论 Bash 在 Windows 还是 Linux(或 OS X、BSD 或任何其他操作系统)上运行,它确实表现相同。然而,这是 Bash 的属性,而不是 Linux。

is Linux included in Git Bash

没有。

关于linux - Windows 电脑上的 Git Bash 和 Linux 有什么关系?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32593678/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com