Mac终端拉取代码的时候比较麻烦,source 用着感觉太麻烦了。一般情况下vscode 中直接提交也行。
1、配置提交名字、邮箱
git config -gobal user.name 名字
git config -gobal user.email 邮箱地址
2、Mac 中 git pull、git push 的时候太麻烦,解决方法如下。
输入:sudo ssh-add -L
返回结果:The agent has no identities.
继续执行
再次输入:sudo ssh-add
完成。。。