« gitコマンドの足し算 | メイン | 「git commit --amend」と「git reset」の挙動 »

Gitのサブコマンドの概略を訳してみた

自分の環境のzshで「git 」と入力後にtabを押したら表示されるサブコマンドの一覧を訳した自分用のメモ。
これくらいの英語はサラッと読めるようになりたいけどそうも言っていられないので...。
意訳と直訳が混在しているし、多分内容も随分間違えているはず。
間違いがあったら遠慮なく指摘して下さい。
gitのコマンドはコマンドを多く覚えるよりも、基本的なコマンドのオプションを覚えた方が良さそうなのであまり役に立たないかも...。
バージョンは1.6.2.1。
add                 -- インデックスにパスを追加 -- add paths to the index
am                  -- メールボックスからパッチを適用する(applymboxよりもかっこいい) -- apply patches from a mailbox (cooler than applymbox)
apply               -- Gitインデックスファイルとワークツリーにパッチを適応する -- apply patch on a git index file and a work tree
applymbox           -- メールボックスからパッチを適用する -- apply patches from a mailbox
applypatch          -- Eメールから抜き出したひとつのパッチを適応する -- apply one patch extracted from an e-mail
archimport          -- Arch(というバージョン管理システム)のレポジトリをGitにインポートする -- import an Arch repository into git
bisect              -- バグが混入した変更を探す find the change that introduced a bug
branch              -- ブランチの作成と表示をする -- create and show branches
cat-file            -- リポジトリオブジェクトのコンテンツまたはタイプの情報を提供する -- provide content or type information for repository objects
check-ref-format    -- 参照名が正しいかを確認する -- makes sure that a reference-name is well formed
checkout            -- ブランチのチェックアウトと切り替えをする -- checkout and switch to a branch
checkout-index      -- インデックスからワーキングディレクトリにファイルを複製する -- copy files from the index to the working directory
cherry              -- 上流(のリポジトリ)にマージされていないコミットを探す -- find commits not merged upstream
cherry-pick         -- 既存のコミットの効果をつまみ食いする(一部だけ適応するの意) -- cherry-pick the effect of an existing commit
clone               -- リポジトリを新しいディレクトリに複製する -- clones a repository into a new directory
clone-pack          -- リポジトリを現在のリポジトリに複製する(移す) -- clones a repository into the current repository (transport)
commit              -- 変更をリポジトリに記録する -- record changes to the repository
commit-tree         -- 新しいコミットオブジェクトを作成する -- creates a new commit object
convert-objects     -- 古い形式のGitリポジトリを変換する -- converts old-style git repository
count-objects       -- パックされていないオブジェクトの数とそれらのディスク消費量を表示する -- count unpacked objects and display their disk consumption
cvsimport           -- CVS(というバージョン管理システム)のリポジトリをGitにインポートする -- import a CVS "repository" into a git repository
daemon              -- Gitリポジトリのための本当に簡単なサーバを起動する -- starts a really simple server for git repositories
diff                -- コミットとコミットや作業ツリー等との間の変更を表示する -- show changes between commits, commit and working tree, etc.
diff-files          -- 作業ツリーとインデックス内のファイルを比較する -- compares files in the working tree and the index
diff-index          -- インデックスとリポジトリ間のコンテンツとBLOBのモードを比較する -- compares content and mode of blobs between index and repository
diff-stages         -- インデックスファイル内のふたつの"マージステータス"を比較する -- compares two "merge states" in the index file
diff-tree           -- ふたつのツリー経由でコンテンツとBLOBのモードを比較する -- compares the content and mode of blobs found via two tree objects
fetch               -- 別のリポジトリからオブジェクトとHEADをダウンロードする -- download objects and a head from another repository
fetch-pack          -- 他のリポジトリから紛失したオブジェクトを受け取る -- receive missing objects from another repository
format-patch        -- Eメールで提出するパッチを用意する -- prepare patches for e-mail submission
fsck-objects        -- データベース内のオブジェクトの接続性と妥当性を検証する -- verifies the connectivity and validity of the objects in the database
get-tar-commit-id   -- tarツリーを使用して作成されたアーカイブからコミットIDを抽出する -- extract commit ID from an archive created using tar-tree
grep                -- パターンに一致した行を書き出す -- print lines matching a pattern
hash-object         -- ファイルからオブジェクトIDを算出する -- computes the object ID from a file
http-fetch          -- HTTP経由でリモートのGitリポジトリをダウンロードする -- downloads a remote git repository via HTTP
index-pack          -- 既存のパックされたアーカイブのインデックスファイルのパックをビルドする -- build pack index file for an existing packed archive
init-db             -- 空のGitオブジェクトデータベースを作成する -- creates an empty git object database
local-fetch         -- ローカルシステム上の別のGitリポジトリを複製する -- duplicates another git repository on a local system
log                 -- コミットログを表示する -- shows commit logs
lost-found          -- 運良くまだprune(コマンド)されていない紛失した参照を回復する -- recovers lost references that luckily have not yet been pruned
ls-files            -- インデックス/作業ディレクトリ内のファイルの情報 -- information about files in the index/working directory
ls-remote           -- リモートかローカルのリポジトリ内の参照を表示する -- shows references in a remote or local repository
ls-tree             -- 人が読める形式でツリーオブジェクトを表示する -- displays a tree object in human-readable form
mailinfo            -- ひとつのEメールメッセージからパッチを抽出する -- extracts patch from a single e-mail message
mailsplit           -- メールボックスファイルからファイルの一覧に分割する -- splits an mbox file into a list of files
merge               -- すばらしく統合されたマージドライバ -- grand unified merge driver
merge-base          -- マージ可能な共通の祖先を探す -- finds a good common ancestor as possible for a merge
merge-index         -- マージが必要なファイルのマージを実行する -- runs a merge for files needing merging
merge-one-file      -- マージインデックスを使用する標準のヘルパープログラム -- standard helper-program to use with merge-index
mktag               -- タグオブジェクトを作成する-- creates a tag object
mv                  -- ファイルやディレクトリやシンボリックリンクを移動やリネームをする -- moves or renames a file, directory, or symlink
name-rev            -- 指定されたリビジョンのシンボリック名を探す -- find symbolic names for given revisions
octopus             -- ふたつ以上のコミットをマージする -- merges more than two commits
pack-objects        -- オブジェクトのパックされたアーカイブを作成する -- creates a packed archive of objects
parse-remote        -- 「$GIT_DIR/remotes/」の解析を支援するルーチン -- routines to help parsing $GIT_DIR/remotes/
patch-id            -- パッチ用の一意なIDを算出する -- computes unique ID for a patch
peek-remote         -- upload-pack(コマンド)のプロトコルを使用しリモートリポジトリ上の参照を一覧する -- lists references on a remote repository using the upload-pack protocol
prune               -- オブジェクトデータベースから全ての到達不可能なオブジェクトを刈り取る(prune:枝を切り落とす|コミットの履歴が木に準えているため) -- prunes all unreachable objects from the object database
prune-packed        -- パックファイル内の既に余分なオブジェクトを削除する -- removes extra objects that are already in pack files
pull                -- リモートリポジトリからフェッチしマージする -- fetch from and merge with a remote repository
push                -- 関連づけられたオブジェクトを一緒にリモートの参照を更新する -- update remote refs along with associated objects
read-tree           -- ディレクトリインデックスからツリーの情報を読み取る -- reads tree information into the directory index
rebase              -- ローカルコミットを新しい上流のHEADに接ぎ変える -- rebases local commits to new upstream head
receive-pack        -- send-pack(コマンド)によりプッシュされたものを受信するために呼び出されるコマンド -- command invoked by send-pack to receive what is pushed to it
relink              -- ローカルリポジトリ内の共通のオブジェクトをハードリンクする -- hardlinks acommon objects in local repositories
repack              -- リポジトリ内のパックされていないオブジェクトをパックする -- packs unpacked objects in a repository
request-pull        -- 保留中の変更の要約を生成する -- generates a summary of pending changes
reset               -- 現在のHEADを指定されたステージにリセットする -- resets current HEAD to the specified state
resolve             -- ふたつのコミットをマージする -- merges two commits
rev-list            -- 時系列の逆順にコミットオブジェクトを一覧する -- lists commit object in reverse chronological order
rev-parse           -- 他のGitコマンドのためにパラメータを取り出し操作を加える -- picks out and massages parameters for other git commands
revert              -- 既存のコミットに戻す -- reverts an existing commit
send-email          -- 「format-patch --mbox」の出力のパッチEメールを送信する -- sends patch-e-mails out of "format-patch --mbox" output
send-pack           -- リモートリポジトリにすぐれたpushをする -- pushes to a remote repository, intelligently
shortlog            -- Gitログの出力を要約する -- summarizes git log output
show-branch         -- ブランチとそれらのコミットを表示する -- shows branches and their commits
show-index          -- パックのインデックスファイルの内容を表示する -- displays contents of a pack idx file
ssh-fetch           -- SSH接続でリモートリポジトリからpullする -- pulls from a remote repository over an SSH connection
ssh-upload          -- ssh-fetch(コマンド)により使用されるサーバ側のヘルパープログラム -- helper "server-side" program used by ssh-fetch
status              -- 作業ツリーのステータスを表示する -- shows the working-tree's status
stripspace          -- 空行をフィルタリングする -- filters out empty lines
svnimport           -- SVN(というバージョン管理システム)のリポジトリをGitにインポートする -- imports a SVN repository into git
symbolic-ref        -- シンボリック参照を読み込み修正する -- reads and modifies symbolic references
tag                 -- GPGで著名されたタグオブジェクトを作成する -- creates a tag object signed with GPG
tar-tree            -- 指定されたツリー内のファイルのtarアーカイブを作成する -- creates a tar archive of the files in the named tree
unpack-file         -- BLOBの中身を持つテンポラリファイルを作成する -- creates a temporary file with a blob's contents
unpack-objects      -- パックされたアーカイブのパックされていないオブジェクトを出力する -- unpacks objects out of a packed archive
update-index        -- 福数の指定された方法でインデックスを修正する -- modifies the index in some given way
update-ref          -- 参照に格納されたオブジェクト名を安全に更新する -- updates the object name stored in a reference safely
update-server-info  -- ダンプサーバの補助情報を更新する -- updates auxiliary information on a dumb server
upload-pack         -- clone-pack(コマンド)とfetch-pack(コマンド)に呼び出されるコマンド -- command invoked by clone-pack and fetch-pack
var                 -- Gitの論理変数を表示する -- displays a git logical variable
verify-pack         -- パックされたGitのアーカイブファイルを検証する -- validates packed git archive files
verify-tag          -- タグのGPG署名を照合する -- checks the GPG signature of a tag
whatchanged         -- コミットログとそれらにより導入された差分を表示する -- shows commit-logs and differences they introduce
write-tree          -- 現在のインデックスからツリーを作成する -- creates a tree from the current index
2010/02/28 追記
am,applymboxが「メールボックスからパスを適応する」となっていたのを修正。(id:ujihisaさんからの指摘)
patch-idが「Apatch(パッチ?)用の一意なIDを算出する -- computes unique ID for a apatch」となっていたがapatchではなくpatchらしい。zshの補完関数のbugかもとのこと。(id:ujihisaさんからの指摘)
2010/03/01 追記
am,applymboxが「メールボックスからパッチを適応する」となっていたのを修正。(id:nankiさんからの指摘)

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)

Google

タグ クラウド