It is possible to nullify existing ignore entries in .gitignore with negation with !. However, in order for this to work, the existing ignore entries should ignore items only with somedir/* and not the directory somedir.

Sources