git: How do I recursively add all files in a directory subtree that match a glob pattern?

后端 未结 6 1982
谎友^
谎友^ 2021-01-31 14:15

I have several .screen files inside /xxx/documentation and its subdirectories that are already tracked by Git.

After modifying many of these screen files, I

6条回答
  •  被撕碎了的回忆
    2021-01-31 14:44

    You told the shell to look for *.screen (i.e. exactly this string - which doesn't exist - instead of what you want "all files that end with .screen). Omit the \\ so the shell can do the file name expansion for you.

提交回复
热议问题