• 清空储存的用户名和密码: git config --system --unset credential.helper
  • 设置全局用户名 git config --global user.name "你的用户名"
  • 设置全局邮箱 git config --global user.email "你的邮箱"
  • 储存用户名和密码: git config --local credential.helper store (输入一次后自动保存)