Does git support wildcards in paths?

后端 未结 4 521
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 14:41

I have looked, searched, and read documentation and can\'t really find anything about this.

Basically, I want to be able to do this:

git reset -- *.exe
<         


        
4条回答
  •  不要未来只要你来
    2021-02-01 15:37

    At least in the case of subfolders/subfiles, there is no need for a wildcard.

    git add .
    

    ...adds the current directory (.) and everything under it. The same goes for...

    git add files/
    

    ...which would add ./files, ./files/foo.txt, and ./files/foo/bar.txt.

提交回复
热议问题