こちらで質問させていただいた内容ですが、まだ解決できません。
回答者さんの言う通り、こちらの記事を参考にすると、
Hi ○○(GitHubのユーザー名)! You've successfully authenticated, but GitHub does not provide shell access.
となりSSH接続には成功したかと思われます。
それで、こちらのUdemyの動画を参考に以下のようにもう一度ターミナル上でコマンドを入力しました。
Last login: Tue Nov 23 16:44:42 on ttys000 ys@mbp ~ % cd ~/Desktop ys@mbp Desktop % cd intro_git ys@mbp intro_git % ls first.txt ys@mbp intro_git % git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch <name> hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m <name> Initialized empty Git repository in /Users/ys/Desktop/intro_git/.git/ ys@mbp intro_git % ls -a . .. .git first.txt ys@mbp intro_git % ls -a.git/ ls: illegal option -- . usage: ls [-@ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1%] [file ...] ys@mbp intro_git % ls -a.git/ ls: illegal option -- . usage: ls [-@ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1%] [file ...] ys@mbp intro_git % ls -a .git/ . HEAD description info refs .. config hooks objects ys@mbp intro_git % ls -a . .. .git first.txt ys@mbp intro_git % git add first.txt ys@mbp intro_git % git commit [master (root-commit) bdb7244] initial commit 1 file changed, 2 insertions(+) create mode 100644 first.txt ys@mbp intro_git % git remote add origin https://github.com/○○(GitHubのユーザー名)/intro_git.git ys@mbp intro_git % git branch -M main ys@mbp intro_git % git push -u origin main Username for 'https://github.com': ○○(GitHubのユーザー名) Password for 'https://○○(GitHubのユーザー名)@github.com': remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/○○(GitHubのユーザー名)/intro_git.git/'
となり、やはり最後でエラーになります。何が原因かわかるでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/11/23 11:46