1.使用 https时总要输入密码
# git push origin master
Username for ‘https://github.com‘: ahnulplp
Password for ‘https://ahnulplp@github.com‘:
2.使用ssh避免输入密码
git remote rm origin
git remote add origin git@github.com:ahnulplp/test.git
用户名: ahnulplp
仓库名: test