Just wanted to post a little note about the following point:
Both commands accept a stash reference (in the form of stash@{}) which you can use to unstash specific changes.
You don't have to explicitly specify git stash apply stash@{1} (or) git stash pop stash@{0}. Just passing the number would work fine too i.e., you can use them as follows:
# Pops (apply and drop) the last stashed change
git stash pop 0
# Applies the last stashed change
git stash apply 0
I'm a Software Engineer based in Dublin. I love crafting software and experimenting with languages and technologies. I'm a #DevOps advocate and continuous improvement pursuer.
Just wanted to post a little note about the following point:
You don't have to explicitly specify
git stash apply stash@{1}
(or)git stash pop stash@{0}
. Just passing the number would work fine too i.e., you can use them as follows:Love it, thank you!