centos每次git操作都提示输入账户和密码
部署静态网站,需要把本地的静态文件上传到服务器,每次更新上传都需要用xftp,效率太低了。
所以,使用git来储存管理静态文件比较方便,本地打包文件上传到git,服务器只需要拉取最新的git分支就可以了。
但是,在服务器上,每次拉取最新分支都提示输入git账号密码。
Cloning into 'dist'...
Username for 'https://e.coding.net':
Password for 'https@e.coding.net':
解决:保存账号密码
在此项目运行:
git config --global credential.helper store
下次进行git 操作就不要输入账号密码了。
如果提示
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
就执行这个:
git config --global user.email "1501487376@qq.com"
转载请注明来源:《 centos每次git操作都提示输入账户和密码》- rojerYong's Blog
文章链接:https://www.eoway.cn /article/1587789784.html如果此文摘取了你的原创,请联系本站管理员,将对此文修改、删除处理。
--END--