How do I select all the files ending with
.txt in the current directory, but omit all the ones in the subdirectories?
*.txt selects all the files ending in
.txt in the subdirectories as well. How do I omit them?
current folder |-first_file.txt |-sub_folder |-second_file
I'm trying to add the first_file alone to a git repository. But doing
git add *.txt adds both the first and the second file to the stage. I want only the first_file to be added.