I had reverted some changes done. Need to know the files and changes(diff) in the code that was reverted previously.
Yes, just as ElpieKay said, you can use git log --grep='Revert'
.
There is another default message “This reverts commit …”, so git log --grep='revert'
or git log --grep='reverts'
are also work.
If you want to show only one branch's revert log, you can use
git log branchName --grep='revert'
.