使用頻度の高いコマンド
| コマンド | 機能 |
|---|---|
| add | ファイルの内容をインデックスに追加する |
| am | メールボックスから一連のパッチを適用する |
| archive | 名前付きのツリーからファイルのアーカイブを作成する |
| bisect | バグが発生したコミットを見つけるためにバイナリーサーチを使用する |
| brach | ブランチをリストアップ、作成、削除する |
| bundle | ファイルをアーカイブして送れるようにする |
| checkout | ブランチを切り替えたり作業中のツリーファイルを復元する |
| cherry-pick | 既存のコミットで導入された変更を適用する |
| citool | git gui citoolのエイリアス |
| clean | ワーキングツリーからトラックしていないファイルを削除する |
| clone | リポジトリを新しいディレクトリにクローンする |
| commit | リポジトリに変更を記録する |
| describe | コミットから見て直近のタグを表示する |
| diff | コミット間の差分を表示する |
| fetch | 別リポジトリからファイルをダウンロードする |
| format-patch | パッチファイルを作成する |
| gc | 不要なファイルをクリーンアップしてリポジトリを最適化する |
| grep | パターンに一致した行を出力する |
| gui | A portable graphical interface to Git. |
| init | 空のGitリポジトリを作成する、もしくは既存のリポジトリを初期化する |
| log | コミットログを表示する |
| merge | Join two or more development histories together. |
| mv | ファイルやディレクトリ、シンボリックリンクを移動したりリネームする |
| notes | オブジェクトノートを追加や検査する |
| pull | Fetch from and integrate with another repository or a local brach. |
| push | Update remote refs along with associated objects. |
| range-diff | Compare two commit ranges. |
| rebase | Reapply commits on top of another base tip. |
| reset | Reset current HEAD to the specified state. |
| restore | ワーキングツリーファイルを復元する |
| revert | コミットを元に戻す |
| rm | ワーキングツリーやインデックスからファイルを削除する |
| shortlog | Summarize git log output. |
| show | Show various types of objects. |
| sparse-checkout | Initialize and modify the sparse-checkout. |
| stash | ワーキングディレクトリの変更を退避する |
| status | Show the working tree status. |
| submodule | Initialize, update or inspect sumbodules. |
| switch | ブランチを切り替える |
| tag | Create, list, delete or verify a tag object signed with GPG. |
| worktee | 複数のワーキングツリーを管理する |
See Also
git config
gitのパラメータを設定する
基本操作
init, add, remote, commit, reset, rm
git remoteの使い方
リモートリポジトリを編集する
git clone
Gitリポジトリの複製
ブランチの操作
ブランチを作ったり合わせたり
ファイルの移動
ファイルの移動と名前変更