git push origin main のコマンドを叩いた際に以下のようなエラーが、
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
これは"origin"とはなんぞ?
と言われている状態。
登録しているリモートリポジトリの名前を確認してみます。
git remote -v
"zipcloud-rails"
つまり全然origin とは違います。
git push zipcloud-rails main こちらを試しました。
すると今度は
error: failed to push some refs to 'https://github.com/**********/zipcloud-rails.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
の表示が。
しかしここまで来ればそんなに焦る必要はありません。
あくまでも個人開発ですから、無敵です。
git push --force zipcloud-rails main
これで解決しました。