I have a
The rule to remember with gitignore:
I want everything in /Users/keatooon/pos_dev/apps/POS/ipad/native/www to be ignored.
That would then simply be a
(note the trailing slash, to ignore the folder content)
Make sure the content of that folder was not already tracked (because in that case, any modification would still show up in the
Check that a file is correctly ignored by that rule with:
git check-ignore -v /Users/keatooon/pos_dev/apps/POS/ipad/native/www/<aFile>
If not, type:
git rm -r --cached /Users/keatooon/pos_dev/apps/POS/ipad/native/www/ git add . git commit -m "remove apps/POS/ipad/native/www from repo"
The files on the disk will remain, but you will record in the history of the repo the deletion of
www/, whose content will then be ignored.