File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # git commit-graph
2+
3+ > Gitのcommit-graphファイルを書き込み、検証する。
4+ > 詳細情報: < https://git-scm.com/docs/git-commit-graph > 。
5+
6+ - リポジトリのローカル ` .git ` ディレクトリ内にあるパック済みコミット用のcommit-graphファイルを書き込む:
7+
8+ ` git commit-graph write `
9+
10+ - 到達可能なすべてのコミットを含むcommit-graphファイルを書き込む:
11+
12+ ` git show-ref {{[-s|--hash]}} | git commit-graph write --stdin-commits `
13+
14+ - 現在のcommit-graphファイル内のすべてのコミットと、` HEAD ` から到達可能なコミットを含むcommit-graphファイルを書き込む:
15+
16+ ` git rev-parse {{HEAD}} | git commit-graph write --stdin-commits --append `
Original file line number Diff line number Diff line change 1+ # git maintenance
2+
3+ > Gitリポジトリデータを最適化するタスクを実行する。
4+ > 詳細情報: < https://git-scm.com/docs/git-maintenance > 。
5+
6+ - 現在のリポジトリを、毎日メンテナンスが実行されるユーザーのリポジトリ一覧に登録する:
7+
8+ ` git maintenance register `
9+
10+ - 現在のリポジトリでメンテナンスタスクが毎時実行されるようにスケジュールする:
11+
12+ ` git maintenance start `
13+
14+ - 現在のリポジトリのバックグラウンドメンテナンススケジュールを停止する:
15+
16+ ` git maintenance stop `
17+
18+ - 現在のリポジトリをユーザーのメンテナンス対象リポジトリ一覧から削除する:
19+
20+ ` git maintenance unregister `
21+
22+ - 現在のリポジトリで指定したメンテナンスタスクを実行する:
23+
24+ ` git maintenance run --task {{commit-graph|gc|incremental-repack|loose-objects|pack-refs|prefetch}} `
Original file line number Diff line number Diff line change 1+ # git merge-tree
2+
3+ > ファイルを変更せずにブランチをマージする。
4+ > 詳細情報: < https://git-scm.com/docs/git-merge-tree > 。
5+
6+ - 2つのブランチ間のマージ結果を表示する:
7+
8+ ` git merge-tree {{ブランチ1}} {{ブランチ2}} `
9+
10+ - マージを実行し、結果のツリーを書き込む:
11+
12+ ` git merge-tree --write-tree {{ブランチ1}} {{ブランチ2}} `
Original file line number Diff line number Diff line change 1+ # git show-index
2+
3+ > Gitリポジトリのパック済みアーカイブインデックスを表示する。
4+ > 詳細情報: < https://git-scm.com/docs/git-show-index > 。
5+
6+ - Git packfileのIDXファイルを読み取り、その内容を ` stdout ` に出力する:
7+
8+ ` git show-index {{ディレクトリ/サブディレクトリ/ファイル.idx}} `
9+
10+ - インデックスファイル用のハッシュアルゴリズムを指定する (実験的):
11+
12+ ` git show-index --object-format {{sha1|sha256}} {{ディレクトリ/サブディレクトリ/ファイル}} `
Original file line number Diff line number Diff line change 1+ # git unpack-file
2+
3+ > blobの内容を持つ一時ファイルを作成する。
4+ > 詳細情報: < https://git-scm.com/docs/git-unpack-file > 。
5+
6+ - IDで指定したblobの内容を保持するファイルを作成し、一時ファイル名を出力する:
7+
8+ ` git unpack-file {{blob_id}} `
You can’t perform that action at this time.
0 commit comments