LoginSignup
4
3

More than 3 years have passed since last update.

【備忘録】git remote add originできない時

Last updated at Posted at 2019-07-04

あるリポジトリでgit管理を始める時、下記の手順に従ってコマンドを入力していくと、

スクリーンショット 2019-07-04 13.18.48.png

$ git remote add origin https://github.com/katsuomi/****.git
$ git push -u origin master
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/katsuomi/*****.git/'

となってしまう場合、
git remote add origin https://{gitのID名}@github.com/katsuomi/.git**
とすると、うまくいきました。

$ git remote rm origin
$ git remote add origin https://katsuomi@github.com/katsuomi/*****.git
$ git push -u origin master

以上。

4
3
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
4
3