MAC
文章平均质量分 57
贝小贝貝
总是在前进的道路上迷失,这一次,想要到达终点。
展开
-
git提交代码报443错误之Mac git ssh 的配置和使用
问题:git提交代码或者拉取代码报443错误之所以出现这种报错是因为git采用了双重验证:密码+SSH可查看以下文章了解相关内容:https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/Mac解决方案:原创 2021-04-20 16:44:43 · 1774 阅读 · 0 评论 -
Mac下安装oh my zsh之后配置环境变量失效问题 zsh: command not found: mvn
背景:在刚拿到mac 的时候,使用了默认的bash,由于工作需要在电脑上安装了maven,在~/.bash_profile 文件中添加了maven的配置如下$ cat ~/.bash_profile#mavenexport PATH=${PATH}:/Users/xiebei/Library/apache/apache-maven-3.6.3/bin平时通过Terminal 使用 maven clean install来构建maven项目用的也很顺手。前不久,看到了oh my zsh,相原创 2021-02-03 11:03:40 · 2349 阅读 · 3 评论 -
Mac 安装 Homebrew 报错:zsh: command not found: brew
Mac使用brew安装是报错:zsh: command not found: brew步骤:1.在浏览器中打开https://raw.githubusercontent.com/Homebrew/install/master/install.sh,很多文章还在用的脚本链接是老的了,官网已替换为这个。2.将此网页内容另存为install.sh3.下载之后:将1内容找到并注释,替换成2内容(如果可以翻墙,并且有足够长的时间,可以不做这步,耐心等待即可,如果未执行此步,安装成功之后再替换Home.原创 2020-11-25 17:13:34 · 8427 阅读 · 0 评论 -
Mac替换Homebrew镜像源
1.使用中科大源#(1)替换默认源#第一步:替换brew.git1.cd "$(brew --repo)"2.git remote set-url origin https://mirrors.ustc.edu.cn/brew.git#第二步:替换homebrew-core.git3.cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"4.git remote set-url origin https://mirrors.us原创 2020-11-25 16:49:20 · 561 阅读 · 0 评论