问题

  • git 提交时,每次都需要输入用户名、密码

解决

  • 使用了https协议的缘故,换成ssh协议就好了
  • $ git remote -v
    origin https://github.com/AdeGitHub/hello-world.git (fetch)
    origin https://github.com/AdeGitHub/hello-world.git (push)
  • 删除https,改为ssh协议
  • $ git remote rm origin
  • $ git remote add origin git@github.com:AdeGitHub/hello-world.git