I need to retrieve all commits from all branches. I retrieve them using command:
git log --pretty="%H %f" --all
But in this case Git returns me all commits with notes, if such exist. I tried to use something like the following:
git log --pretty="%H %f" --all --no-notes
It looks like the command “–all” overrides “–no-notes” and nothing will happen.
Please advise how can I retrieve all commits from all branches without notes?
P.S. Yes, I could execute “git notes”, parse them and then subtract from “git log –all”, but it seems to me there should be a much easier solution for such a trivial situation.
As you said,
--alloverrides--no-notes. So you may want to split--allto include only refs you want. If you just want to show all the branches:or if you want more: