“git add *.js” did not add the files in sub-directories

后端 未结 3 1651
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 02:00

Was trying to commit some changes. I used git add to add any new javascript files that I may have created using the wildcard *.js. Then I committed cha

3条回答
  •  时光取名叫无心
    2021-02-20 02:58

    An alternative is to use the find command:

    find . -name '*js' -exec git add {} \;
    

    Running that without the exec will give you the list of files that you are working on; so, it is easy to tune this command to your liking.

提交回复
热议问题