説明 | コマンド |
---|---|
変更しているファイルを退避 | git stash push |
特定の変更しているファイルを退避 | git stash push -- <filepath> |
退避しているファイルを確認 | git stash list |
退避したファイルを戻す(最新のもの) | git stash pop stash@{0} |
退避したファイルを削除(最新のもの) | git stash drop stash@{0} |
退避したファイルを全て削除 | git stash clear |
git stash と git stash push の違いは?
git stash: 追加のオプションなしでするコマンド。オプションなしのgit stash pushと同じ。
git stash push: 追加のオプションや引数を使用するためのコマンド。
参考