Displaying git changes with relative date
How to display where was your master branch yesterday?
git show master@{yesterday}
And 2 months ago? Simple!
git show master@{2.months.ago}
The same option can used in git reflog
when you need to revert for example the result of git rebase --interactive
:
git reflog head@{26.hours.ago}
Written by Wojtek Ryrych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#