为什么“ gcloud init”不显示所有文本



我安装了Google Cloud SDK,并且我正在初始化,即按照git bash中的Windows 10上的说明,即运行gcloud init。但是,输出文本似乎已被切断。这是唯一的输出

$ gcloud init
Welcome! This command will take you through the configuration of gcloud.
Settings from your current configuration [viviangmail] are:
core:
  account: example@google.com
  disable_usage_reporting: 'True'

当我在命令提示符中运行相同的命令时,它可以正常工作。请参阅下面的完整输出。但是我不想使用命令提示。我习惯了git bash。

C:UsersVivian>gcloud init
Welcome! This command will take you through the configuration of gcloud.
Settings from your current configuration [viviangmail] are:
core:
  account: example@google.com
  disable_usage_reporting: 'True'
Pick configuration to use:
 [1] Re-initialize this configuration [viviangmail] with new settings
 [2] Create a new configuration
 [3] Switch to and re-initialize existing configuration: [default]
Please enter your numeric choice:

为什么gcloud init在git bash中不起作用?

作为替代方案,您可以将Windows子系统用于Linux(WSL(会话,并查看该问题是否持续存在。

关于bash会话,尝试在CMD中键入git bash -login -i,您首先设置了一个简化的路径:

set PATH=C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0
set GH=C:pathtogit
set PATH=%GH%bin;%GH%usrbin;%GH%mingw64bin;%PATH%

查看问题是否存在(使用Windows最新的Git 2.21(

最新更新