New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for Homebrew #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外这个 PR 太大了,最好能拆成两个 PR:一个只改 brew tap --custom-remote
,另一个修改其他的部分。
|
||
由于 brew 安装脚本此前多次修改相关的变量名,也可以参考以下命令,让 Git 将脚本访问的所有 GitHub 的 URL 替换为科大源: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用 insteadOf
替换的方式最好留着,我不想在 homebrew 再丢掉 HOMEBREW_CORE_GIT_REMOTE
之后再改帮助。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HOMEBREW_CORE_GIT_REMOTE
为 brew
的环境变量,与官方的 installer 无关。自 Homebrew/install#534 起,官方的 installer 支持安装时即从环境中读取该变量。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那提一下 unset insteadOf 的内容?有用户现在是这么设置的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那提一下 unset insteadOf 的内容?有用户现在是这么设置的。
是指重置 Remote 时的命令?一般设置了镜像之后就不会考虑换回 GitHub 的源了吧。新文档前面没有提到 insteadOf
的事情,后面突然提到 unset insteadOf
会不会有点突兀。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那提一下 unset insteadOf 的内容?有用户现在是这么设置的。
是指重置 Remote 时的命令?一般设置了镜像之后就不会考虑换回 GitHub 的源了吧。新文档前面没有提到
insteadOf
的事情,后面突然提到 unsetinsteadOf
会不会有点突兀。
比如说出问题调试的时候可能会换到 GitHub。如果之前用 insteadOf
改了忘了的话还挺难调试的……
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
添加了一句提示信息。具体 usnet 命令因 set 时的情况不同(有无引号,有无 --global
参数等)会不一样,故没有添加。
已拆分。 |
(另外不需要每次 force push,merge 的时候会 squash。) |
Xuehai Pan: Update docs for Homebrew (#189) * Update docs for Homebrew * Extend title underline * Add notes for git-config insteadOf
Update docs for Homebrew.
HOMEBREW_BREW_GIT_REMOTE
andHOMEBREW_CORE_GIT_REMOTE
.