The remedy for this situation? The
--all switch to
Usually I use git log with
--oneline, mostly also with
--decorate, often with
--graph, and in this specific scenario, also with
--all to show reachable commits other than ones that HEAD descended from. The result looks something like this:
Here you can see there are a couple of branches which come off master (on the left) and haven’t yet been merged back in. It’s very useful to be able to spot these!
Another tip for GitHub users is to click on “branches” when viewing a repo on the web – by default it shows you the unmerged ones.