Gitのcommands
table:commands
git bisect 二分探索する
git grep 過去全てのcommitをgrep
git stash 変更の一時退避
git revert 「過去のcommitを消したcommit」を追加する
git rebase 過去改変
git mv 移動、リネーム
git switch branchの変更
git restore unstegedやstagingにある変更をrestoreする
git checkout branchの変更. v.2.23.0以降で言えばswitch + restore
git fetch remoteの内容を取ってくる
git merge branchを結合
git merge-base 2つのcommitの共通の祖先となるcommitを特定
git fork repositoryを分岐
git push remoteへ送信
git pull fetch + merge
git blame 誰が書いたか特定するやつ。VSCodeで見れるので使うこと無いmrsekut.icon
git branch branchの追加とか削除とか
git symbolic-ref branchに別名をつける
git show-branch branchの派生関係などを一望
git worktree branchを切り替えずに別branchの操作
git submodule
git cherry-pick 別branchで進んでいる1つのcommitを、今のbranchに持ってこれる
git hooks Gitで発生するactionに応じて、任意のShellScriptを実行する
git tag commitに対してtagを付与する
λ git clean
git notes commit logとは別に、commitに対してnoteを残せる
git gc Gitが重いとき
git maintenance
git update-index
git ls-files
git multi-pack-index
git rev-list
git fsck git上に存在するのに使われていないファイルを突き止める
git rerere これまでのconflictの修正の仕方を学習して自動conflict解消
git reflog
git absorb fixupの自動化
git sparce checkout