Linux
git config --global credential.helper store
执行一次,然后再输入用户名密码就可以了。
修改
进入根目录,指令:cd /
创建记录账号密码的文件,指令:touch .git-credentials
用vi打开文件,指令:vi .git-credentials
按i,进入编辑模式
输入https://{username}:{password}@github.com
esc -- wq -- 保存退出
windows
git config --global user.name "your user name"
git config --global user.email "your user email"