I have a variety of scattered paths and files defined in my .gitignore
files. One of my typical workflow patterns is to navigate to a path, then do git add *
to stage all changes under that path. When I do this, however, I sometimes get a warning, "The following paths are ignored by one of your .gitignore files:...".
The paths are intended to be ignored. Is there a way to either A) suppress this warning when running git add *
, or B) use a different git command that does not trigger it, but has the same behavior and is similarly concise?
git add .
(dot instead of *).git add .
?.
and I've included that in my answer. Thank you and @user6537157 for reminding me of this obvious solution.