【问题标题】:Why is `gcloud init` not displaying all texts?为什么`gcloud init`不显示所有文本?
【发布时间】:2019-09-29 09:33:47
【问题描述】:

我安装了 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:\Users\Vivian>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 google-cloud-platform gcloud git-bash


    【解决方案1】:

    作为替代方案,您可以使用Windows Subsystem for Linux (WSL) 会话并查看问题是否仍然存在。

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

    set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
    set GH=C:\path\to\git
    set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
    

    然后查看问题是否仍然存在(使用适用于 Windows 的最新 Git 2.21)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-14
      • 2013-05-28
      • 1970-01-01
      • 2013-12-25
      • 1970-01-01
      • 2012-08-29
      相关资源
      最近更新 更多