よく使う操作
コマンド | 説明 |
---|---|
git config --list |
設定オプションを表示 |
git help |
ヘルプの表示 |
git status |
ステージの現状 |
git log |
最近のログ |
git last |
エイリアス。直近のログ |
git add |
変更をステージ(マーク) |
git commit -m "Comment" |
変更のコミット |
git commit -a -m "Comment" |
変更を一気にコミット |
git branch |
ブランチの現状 |
git branch --no-merged |
マージされていないブランチ |
git branch hoge |
ブランチの作成 |
git checkout hoge |
hogeブランチへ切り替え |
git checkout -b fuga |
fugaブランチを作成し切り替え |
git log --oneline --decorate --graph --all |
マージの歴史 |