0
0

【備忘録】git stash

Last updated at Posted at 2023-11-21
説明 コマンド
変更しているファイルを退避 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: 追加のオプションや引数を使用するためのコマンド。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0