概要
リポジトリを作ったときに大体実行するコマンドたちを簡単にまとめます。(筆者の場合です。)
詳細
実行する順番に羅列しておく。
git init
git config --local user.name '自分の名前'
git config --local user.email '自分のメールアドレス'
git branch -M main
git commit --allow-empty -m "first commit"
git remote add origin リモートリポジトリアドレス
git push -u origin main
touch README.md
git add README.md
git commit -m "READMEの追加"
git push origin main
このあとはREDMEを記入してコミットしたり、その他のファイルをコミットしたりする。