6

I'm trying to get the reversed output from

git log --branches --graph --oneline

(Sadly you can't pass --reverse to it because it says it's incompatible with --graph)

Is there a way to reverse the output of the command?

16

Try to add | tac at the end of your line.

2

If you don't have tac (like on Mac), you should be able to use | tail -R as explained in this answer on the sister site unix

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.