Ignoring the directory target in git