Recently I couldn't find work I knew I wrote earlier. My only guess was that it was in a branch that wasn't obvious to me. After some googling, I came across this SO post that demonstated searching all branches of a repo.
git grep "Your string or Regexp" $(git rev-list --all)
The results of the above search will provide commit hashes and file names. Use the hash to locate the branch that contains the change be running:
git branch --contains XXXXXXXXXXXXXXXXXX
Software engineer by profession, embedded systems tinkerer, husband, father, fantasy novel devourer, wine lush, beer and cheese connoisseur