git - izudon/izudon.github.io GitHub Wiki

コマンド総覧

  1. 「設定/初期化系」コマンド
    • config init clone
  2. 「ローカル系」コマンド
    • commit add rm mv status
    • reset revert clean
  3. 「リモート/ブランチ系」コマンド
    • pull fetch push remote bundle
    • branch checkout tag
    • worktree archive describe
    • show-branch merge mergetool
    • rebase cherry-pick
  4. 「インフォ系」コマンド
    • log diff show blame reflog
    • grep notes
  5. 「パッチ/ヘルプ/メンテ系」コマンド
    • format-patch apply am
    • help
    • update-index submodule subtree svn
    • gc fsck bisect

備忘

  • 競合(コンフリクト)の解消(git status の出力もあわせて)
  • コミットの取り消し(修正)
  • マージ後のブランチの削除
  • リモートブランチの削除
  • git pull --rebase
    • pullmerge を含むから競合が起こり得る。
      (解消方法は別記事参照)
  • git log のオプション色々。
  • rebase ってそういう意味か!
    • rebase とは「分岐点を設定しなおす」こと。
    • これまでのコミットは「再作成」される(IDが全部変わる)。
    • FF(ファスト・フォワード)状態に(必然的に)なる。