How to fix warning: unrecognized pattern in Git | DevErrors