使用以下方法后
git push 再也不用一直输入 账号密码了!
git push 每次都要输入账号密码? 从此解决
正文👇
首先配置 Git 个人信息
依此输入以下两个命令:
配置你的 GitHub 邮箱📬
git config --global user.email "你在 GitHub 注册的邮箱"
配置你的 GitHub 用户名
git config --global user.name "你的 GitHub 用户名"
输入以下命令后,将会保存你 git push 时登录的信息
当下一次 git push 时就不用再输入登录信息了!
git config --global credential.helper store