我是 github 上一个组织的所有者,刚刚创建了一个存储库并尝试推送,但我遇到了一个问题,它要求我提供用户名,即使我可以使用 SSH 就好:
$ ssh -T [email protected] /cdn-cgi/l/email-protection
Hi Celc! You've successfully authenticated, but GitHub does not provide shell access.
$ git add .
$ git commit -m 'first commit'
[master (root-commit) 3f1b963] first commit
6 files changed, 59 insertions(+)
create mode 100644 .gitignore
create mode 100644 main.js
create mode 100644 package.json
create mode 100644 readme.markdown
create mode 100644 views/index.ejs
create mode 100644 views/layout.ejs
$ git remote add origin https://github.com/WEMP/project-slideshow.git
$ git push -u origin master
Username for 'https://github.com':
我究竟做错了什么?我以前从未发生过这种情况,但我最近也升级到了 git 1.7.10.3。
不要使用 HTTP,而使用 SSH
change
https://github.com/WEMP/project-slideshow.git
to
[email protected] /cdn-cgi/l/email-protection:WEMP/project-slideshow.git
你可以这样做.git/config
file
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)