Back

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

Is there a way to tell when a stash was created?

git stash list 

only lists the stashes, and git stash show Nothing but xxxx

shows all the files and changes, but not the date of the stash creation.

1 Answer

0 votes
by (50.2k points)

To get the creation date of a stash you could use:

git stash list --date=local

The output will be something like:

[email protected]{Thu October 24 10:30:17 2019}: WIP on master: 2ffc05b Adding resource

Refer: https://git-scm.com/docs/git-stash#Documentation/git-stash.txt-listltoptionsgt

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.6k users

Browse Categories

...