🌟

【Git】ファイル毎にgit stash

2022/03/08に公開

内容

※対象ファイルをgit addしてから行う

コマンド
git stash push -m "stash name" -- filepath
複数ファイルの場合
git stash push -m "stash name" -- filepath filepath

2022/06/19 追記

VSCode拡張のgit stashを使った方が楽です。
↓の記事とか分かりやすく纏めてくださっているので是非。

https://houdoukyokucho.com/2020/12/18/post-2432/

Discussion