Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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:

stash@{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

Browse Categories

...