READMEを作成しなかった場合。

GitHubにリポジトリrepogetory作成後に実行するコマンド

echo "# ecr-push" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/darcy-it/ecr-push.git
git push -u origin main

 

git remote add origin https://github.com/darcy-it/ecr-push.git
git branch -M main
git push -u origin main

 

おすすめの記事