如何在Ubuntu上对Github进行身份验证? git:"credential-netrc"不是git命令 [英] How to authenticate Github on Ubuntu? git: 'credential-netrc' is not a git command
本文介绍了如何在Ubuntu上对Github进行身份验证? git:"credential-netrc"不是git命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I read this and I have checked my credentials,still I can not git push.
git push --set-upstream origin master
git: 'credential-netrc' is not a git command. See 'git --help'.
到目前为止我所做的:
- 创建〜/.netrc
-
gpg --gen-key
-
gpg -e -r myemail@gmail.com ~/.netrc
- 通过应对添加了创建助手Perl回购到
~/.local/bin/git-credential-netrc
- 设置Git
- Created ~/.netrc
gpg --gen-key
gpg -e -r myemail@gmail.com ~/.netrc
- Added creation helper by coping Perl repo to
~/.local/bin/git-credential-netrc
- Set up Git
git config --global credential.helper"netrc -f〜/.netrc.gpg -v"
git config --global credential.helper "netrc -f ~/.netrc.gpg -v"
查看全文