“git add” using wildcard is not functioning as I hoped - must I cd into specific directories?

后端 未结 3 2071
粉色の甜心
粉色の甜心 2020-12-24 10:58

When I try to do a basic git add *.erb (or any simple wildcard expressions) git is not recognizing it (them). As a side-note, I have never done this before so I

3条回答
  •  一向
    一向 (楼主)
    2020-12-24 11:23

    In my experience (I may be missing an option or something), git add only looks at files in the current directory and subdirectory. So if you want to add everything, go to the root directory of the repo. Though if the repo is really big, this could take a while, especially if you don't pass the -u flag.

提交回复
热议问题