In my project there are multiple branches. I want to check which is the latest commit in the history irrespective of any branch.
I have tried git log -n 1 --date-order
but it gives the commit in the checked out branch
Please help me with a command that I can use to see the latest commit in the git history which is not dependent on the branch. The result should give me the commit and the branch name on which it was committed.