I have a project with a layout like this:
folder_a
folder_b
file1.html
file2.html
folder_c
file3.html
file4.html
folder_d
.gitignore
Now, my goal is to include file3.html
and the entire contents of folder_a/folder_b
to .gitignore. To achieve this, I have written the following in .gitignore:
folder_b/
folder_c/file3.html
This seems elementary, and yet it doesn't work for me. The data still gets updated. What am I doing wrong? I've read the doc, and now it seems like I should write the full path, is it true? I am stuck.