31行目: | 31行目: | ||
|<code>git log --oneline --decorate --graph --all</code> || マージの歴史 | |<code>git log --oneline --decorate --graph --all</code> || マージの歴史 | ||
|} | |} | ||
<small>参考:https://git-scm.com/book/ja/v2</small> |
2019年7月7日 (日) 09:35時点における版
よく使う操作
コマンド | 説明 |
---|---|
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 |
マージの歴史 |