Gitリポジトリの初期設定を自動でやってくれるコマンド
git init
修正したファイルの状態を見る
git status
下書き保存
git add .
メッセージ付きでローカルのgitに保存する
git commit -m "feat"
remote add origin https://github.com/yukimarupi/my-app.git
yuumiiida@Mac my-app % git remote -v
origin https://github.com/yukimarupi/my-app.git (fetch)
origin https://github.com/yukimarupi/my-app.git (push)
GitHubにローカルのGitの内容をアップロードする
git push origin main
git push origin main
Enumerating objects: 22, done.
Counting objects: 100% (22/22), done.
Delta compression using up to 8 threads
Compressing objects: 100% (20/20), done.
Writing objects: 100% (22/22), 167.80 KiB | 1.10 MiB/s, done.
Total 22 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), done.
To github.com:yukimarupi/my-app.git
* [new branch] main -> main
done!