美文网首页Linux新手指北
Github | 免密码push

Github | 免密码push

作者: imrdr | 来源:发表于2019-04-21 20:13 被阅读0次

Github-logo.png

如果你每天都要往Github上提交很多代码,如果你的密码又是那么的“反人类”,那么,每天输入密码,都是一件让你抓狂的事儿。那么,有没有简单的办法。有(以Ubuntu为例):

cd ~
vim .git-credentials
#----------------------------添加以下内容:
https://{username}:{password}@github.com

# for example:
# https://YourGithubUserName:YouGithubPasswd@github.com
#---------------------------------------------------

#在终端下输入:
git config --global credential.helper store
# End.

相关文章

网友评论

    本文标题:Github | 免密码push

    本文链接:https://www.haomeiwen.com/subject/yzajgqtx.html