画面の指示に従って新しいリポジトリをプッシュするときに、Github がユーザー名とパスワードを要求するのはなぜですか? 質問する

画面の指示に従って新しいリポジトリをプッシュするときに、Github がユーザー名とパスワードを要求するのはなぜですか? 質問する

私は github の組織の所有者で、リポジトリを作成してプッシュしようとしましたが、SSH は問題なくできるにもかかわらず、ユーザー名を求められるという問題が発生しています。

$ ssh -T [email protected]
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 にアップグレードしました。

ベストアンサー1

HTTPではなくSSHを使用してください

変化

https://github.com/WEMP/project-slideshow.git 

[email protected]:WEMP/project-slideshow.git

.git/configファイルで行うことができます

おすすめ記事