Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

How can I see the changes un-stashing will make to the current working tree? I would like to know what changes will be made before applying them!

1 Answer

0 votes
by (50.2k points)

Check this commands 

To see the most recent stash:

git stash show -p

To See an arbitrary stash 

git stash show -p stash@{1}

“By default, the command shows the diffstat, but it will accept any format known to git diff (e.g., git stash show -p stash@{1} to view the second most recent stash in patch form).”

Reference: https://git-scm.com/docs/git-stash#Documentation/git-stash.txt-showltoptionsgtltstashgt

For more details on working of git and devops tools do visit :

https://intellipaat.com/devops-certification-training/

Related questions

+6 votes
2 answers
0 votes
1 answer
+9 votes
2 answers
0 votes
1 answer
asked Aug 2, 2019 in DevOps and Agile by Han Zhyang (19.7k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...