Pergunta

I have stashed many changes, so I have at least 10 to 15 in my git stash list.

I'm looking for a particular change, but it is rather tedious to look through the contents of each one of the entries in the list.

However, I do know on what date the changes were stashed, so I was wondering if there is some way to filter the list by creation date?

Foi útil?

Solução

A stash is a special commit and git stash list is a shortcut for git reflog refs/stash and takes the same arguments

So, if you want the stash from the April 04 you can use

git stash list --since='Apr 04'

Outras dicas

It's up to you to manage your stash list. Maybe you should just add the date in the stash message with

git stash save "enter date"

EDIT : I thought you could custom the stash message automatically with a hook, but it doesn't seem that way eventually

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top