how to add file or folder to gitignore locally code example Example: gitignore folder in .gitignore: folder/