Is it possible to preview stash contents in git?

后端 未结 16 1736
后悔当初
后悔当初 2020-12-02 03:34

I often put work away for later, then other stuff comes along, and a few weeks later, I want to inspect the stash, and find out what changes it would make if I applied it to

16条回答
  •  借酒劲吻你
    2020-12-02 04:07

    To view a current list of stash:

    git stash list
    

    You'll see a list like this:

    stash@{0}: WIP on ...
    stash@{1}: ...
    stash@{2}: ...
    ...
    

    To view diff on any of those stashes:

    git stash show -p stash@{n}
    

提交回复
热议问题