新mac 安装注意

105 阅读1分钟

安装brew

参考: [https://blog.csdn.net/qq47653423/article/details/127820546](url)

安装nvm

指令:

curl -o- raw.githubusercontent.com/creationix/… | bash

提交代码碰到此类提示:

ignoring ref with broken name refs/heads/

git for-each-ref --format="%(refname)" | while read ref; do

git show-ref --quiet --verify ref2>/dev/nullgitupdaterefdref 2>/dev/null || git update-ref -d ref

done

打开所在目录

open .

查找文件

where git

where /usr/local/bin/git

vscode保存git账号密码

git config --global  credential.helper store

vscode清除git账号密码

git config --system --unset credential.