【问题标题】:In Anaconda, RStudio bash does not find Git在 Anaconda 中,RStudio bash 找不到 Git
【发布时间】:2017-12-06 21:42:24
【问题描述】:
  • 我已经在 Windows 10 上使用 Anaconda 平台安装了 RStudio v1.1.383 和 Git 2.15.0。
  • 在 RStudio 全局配置中,我已经提供了 git.exe 的路径,提供了 RSA 密钥,选中了“为 RStudio 项目启用版本控制接口”,并使用“Git bash”打开了新终端。
  • 在项目选项中,VCS 设置为 Git。
  • 我已成功将文件提交到本地 git,但我需要访问 Shell 才能将它们推送到 GitHub。

问题是:当我打开 RStudio 的 Shell 时,它没有找到 Git。

bash-4.3$ git
bash: git: command not found

我该如何解决这个问题?

【问题讨论】:

    标签: git bash anaconda rstudio conda


    【解决方案1】:

    我使用 conda-forge 版本重新安装了 Git,现在它可以正常工作了。

    conda install -c conda-forge git
    

    【讨论】:

      猜你喜欢
      • 2016-01-03
      • 2020-10-25
      • 2015-08-26
      • 1970-01-01
      • 2012-12-23
      • 2017-02-11
      • 2021-01-18
      • 2016-08-16
      相关资源
      最近更新 更多