10
7

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 5 years have passed since last update.

git remote add のミス

Posted at

$ git remote add origin(ラベル名) "リポジトリURL(git@github.com:〜)"

とするところを勢いで

$ git remote add origin master

にしてしまった

$ git push -u origin master

fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

###上書きはできないっぽい
$ git remote add origin git@github.com:n0bisuke/music-tube.git

fatal: remote origin already exists.

git remote のラベルを消す

$ git remote remove origin(ラベル名)
とすることで,

$ git remote add git@github.com:〜
が実行できた.

10
7
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
10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?