As the other posts say prevention is best - use a branch naming system, ideally linking work to an issue/ticket number. It saves a lot of hassle.
For the ones you already have you might be able to jog your memory by running git log in each branch or diffing the branches against master.