1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Git push できなかったときの対処 (個人備忘)(初心者)

Posted at

やったこと

ローカルリポジトリ作成とGitHub上のリモートリポジトリを紐づけて、push

コマンド

git push -u origin main

GitHubにログインを求められる
ユーザーネームと、アクセストークンを入力(アクセストークンは事前に準備済み)

エラー

Logon failed, use ctrl+c to cancel basic credential prompt.

どうやらGitのバージョンが古かっただけっぽい

gitをアップデート

git update-git-for-windows

vs codeのGit Bashから再度push を実行したが、失敗した。

エクスプローラーからGit Bashを開いてpush したら成功した。


1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?