只要是使用git操作,不管是同步,拉取,克隆,vscode总让我们输入用户名及密码,就很烦人,来来来操作一番吧
我们打开终端,会看到cmd定位在我们仓库位置
git config --list | grep credential
查看下
mac默认输出
include.path=.gitcredential
credential.helper=osxkeychain
Windows安装GitGUI后,默认会输出:
credential.helper=manager
不管输出什么,我用ubuntu测试没有问题
我添加一条存储的store类型的全局存储
git config --global credential.helper store
再退出vscode并重启,
进行git拉去代码 还需要输入一次用户名和密码
搞定 !开始愉快的撸码.......