git push 使用ssh

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


版权声明:本文为ahnulp原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。