
Git – How to Ignoring files Globally and Locally
.gitignore Create a file, and name it as .gitignore in the root directory, then add names and patterns for any files and directories that should not be added to the repository. Use asterisk (“*”) as a wildcard. E.g. “*.class” will ignore all files that have the “.class” extension. Remember to add the .gitignore file to the repository so that... » read more