0
0

git勉強

Last updated at Posted at 2023-12-03

git チートシート

pushする前に確認すること

ブランチの切り替えや作成はswitchを使おう

ブランチ作成からマージされるまで

ローカルブランチ作成にはプロジェクトごとに命名ルールのようなものもあるらしいので確認しておくのが吉かも

mainブランチはどんどん更新されていく。
開発が終わってからすぐプルリクエストをだすとmainとのコンフリクトが起こってしまう可能性があるので、こまめにgit rebaseして最新を取り込むようにしたほうがいいらきい

git mergeやmerge前に戻すgit reset

git mergeとrebase,fast-forwardがわかりやすい

gitコマンド オプション

こちらがわかりやすい

git status

こちらがわかりやすい

git log

コミットの履歴を見ることができる
終了はq

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0