gpt4 book ai didi

xcode - 如何禁用每次打开 RStudio 时出现的 "git requirement" pop 窗口?

转载 作者:太空狗 更新时间:2023-10-29 13:15:34 29 4
gpt4 key购买 nike

几个月前,我正在探索 RStudio 设置并为 RStudio 项目启用版本控制界面,但因为我没有 Xcode 或命令行开发工具,所以每次打开 RStudio 时都会 pop 一个窗口来烦我,“'git' 命令需要命令行开发工具,”并希望我安装它们。

Popup Window Screenshot

我知道 Xcode 占用大量存储空间,而我的 MacBook 空间非常有限,所以我不想安装它们。现在已经几个月了,我的容忍度越来越低。我真的希望这个 pop 窗口停止。 如何阻止显示此消息?

我尝试过的事情:在 Git/SVN 设置中禁用版本控制并重新启动、关闭所有项目和脚本并重新启动、重新安装/更新 RStudio 和 R。

最佳答案

这似乎与对 /usr/bin/git 的调用有关,这是 git 在 Mac 上默认安装的二进制文件(或者至少在我的 MacBook Air(13 英寸)上,2015 年初),升级为 Sierra)。执行 /usr/bin/git(或 /usr/bin/svn)会显示一条 xcode 消息和对话框。

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

我使用 Homebrew 安装了 git,所以它现在位于 /usr/local/bin/git 中。

我的解决方案是将 /usr/bin/git 移动到 /usr/bin/git.bak (以防万一),并符号链接(symbolic link)到我的实际 git 带有 sudo ln/usr/local/bin/git/usr/bin/git 的二进制文件。

关于xcode - 如何禁用每次打开 RStudio 时出现的 "git requirement" pop 窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37015761/

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