0 votes
in Git by
How to configure git to not to add and commit non-source files like IDE configuration or debug log files?

1 Answer

0 votes
by
In the working directory, create a new file '.gitignore'; basically this file's each line will contain a entry(file or folder name or file extension with filter) to be ignored by git to add or commit in the repository. for example if we want ignore all of the file with '.debug' extension then add a entry '*.debug' in the file. Stage this file '.gitignore' using 'git add .' and then commit it to repository.
...