Suppose I have a directory with a bunch of files and other directories in git.
If I do
git init .
git add .
I will be adding everything including the directories to my git repository. However, if I only want the files in the current directory to be added (no recursive traversal of directories), is there a non-manual way to do it?
The manual way would be to pick out the files using another tool and running git-add on these files.