2017年1月16日星期一

如何不使用用户名和密码进行git的push pull操作(Stack Overflow转载)

If you have configured SSH key to your Github account and are still getting the password prompt, make sure your repo URL is in the form
git@github.com:username/reponame.git
as opposed to
https://github.com/username/reponame.git
To see your repo URL, run:
git remote show origin
You can change the URL with:
git remote set-url origin git@github.com:username/reponame.git

没有评论:

发表评论