git チートシート
pushする前に確認すること
ブランチの切り替えや作成はswitchを使おう
ブランチ作成からマージされるまで
ローカルブランチ作成にはプロジェクトごとに命名ルールのようなものもあるらしいので確認しておくのが吉かも
mainブランチはどんどん更新されていく。
開発が終わってからすぐプルリクエストをだすとmainとのコンフリクトが起こってしまう可能性があるので、こまめにgit rebaseして最新を取り込むようにしたほうがいいらきい
git mergeやmerge前に戻すgit reset
git mergeとrebase,fast-forwardがわかりやすい
gitコマンド オプション
こちらがわかりやすい
git status
こちらがわかりやすい
git log
コミットの履歴を見ることができる
終了はq