如何在Mac上打开git终端?

Vik*_*iki 8 git macos bash shell terminal

我已经/usr/localhttp://git-scm.com/download/mac在我的 mac 上安装了 git ,但我对如何打开终端感到困惑。

Yil*_*maz 8

Bash 是 shell。在 Mac 中,您已经获得了 Bash,但在 Windows 中,当您安装 git 时,您就获得了 Bash。因此,在 Mac 中,您将使用 git 终端,但在 Windows 中,您将获得单独的 git 终端。我想这就是你感到困惑的原因。

当你输入时

git --version
Run Code Online (Sandbox Code Playgroud)

如果您看到它已经安装,那么您就可以在终端中使用 git


Hex*_*ana -2

在命令行中,输入“git”,然后 cd 到项目所在的目录。