I have many subfolders in my repo, in which there are few build/
directories I'd like to ignore when committing my code. As I understand it, there are two ways to ignore all of the folders:
*/build/
(Unix wildcards)build/
(git way of ignoring files/folders)
I've found Git ignore sub folders but it has two answers and I would like to know what the difference (none?) between the two approaches is. Does the same rule apply to files?