Intellipaat 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 XXXXXX 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 Jul 25 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

0 votes
1 answer
0 votes
1 answer
asked Jul 12, 2019 in DevOps and Agile by chandra (29.3k points)
+6 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...