11行目: 11行目:
|<code>git log</code> || 最近のログ
|<code>git log</code> || 最近のログ
|-
|-
|<code>git last</code> || 直近のログ
|<code>git last</code> || エイリアス。直近のログ
|-
|-
|<code>git add</code> || 変更をステージ(マーク)
|<code>git add</code> || 変更をステージ(マーク)

2019年7月7日 (日) 09:33時点における版

よく使う操作

コマンド 説明
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 マージの歴史