diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py index 02382cad4..11b91e339 100644 --- a/dvc/scm/git/__init__.py +++ b/dvc/scm/git/__init__.py @@ -166,7 +166,7 @@ class Git(Base): @staticmethod def _escape(entry): # Reference: https://git-scm.com/docs/gitignore#_pattern_format - meta_characters = r"[]!*#" + meta_characters = r"[]!*#?" return "".join("\\" + x if x in meta_characters else x for x in entry)