I have this file structure
Inside Android directory there is pizzaSample directory that contains .idea that i want to ignore.(Android/pizzaSample/.idea)
What i have tried inside my .gitignore file to ignore a directory or a file is as follows
Android/
Android/pizzaSample/
Android/pizzaSample/.idea/misc.xml
the above code does not ignore any of the file or the Android directory itself.Can someone help what should i do to ignore a file or a directory?
UPDATED
i tried to add a dummy folder(dummyfolder) that contains a dummy file(dummyfile.txt) and added a single line of my .gitignore file
Android/
Android/pizzaSample/
Android/pizzaSample/.idea/misc.xml
dummyfolder/
the code dummyfolder/ ignores the intire folder including dummyfile.txt and even dummyfolder/* will also do the work.. but i dont understand why when i put Android/ or Android/* in my .gitignore does not work.