Is there a git native way to get when the last git add .
executed?
I recent do some coding in my ios project, and execute git add .
without committing.
Today I also do some coding in the project, and encountered a bug. I use git diff
to check today's work, and not find any changes may lead to the bug.
I've test the ios app on my device last saturday. So I want to know when the last git add .
was executed. If it was executed before last saturday, I can locate the bug in today's code.
You can check the .git/index
or check the bash history. Refer to ElpieKay's comment.