Sometimes when I commit my code in python or javascript, I forgot to remove the debuggers, so I must do it manually.
I know something about creating a .gitattributes file at the root of the project with the following code:
*.py filter=import pdb; pdb.set_trace()
*.js filter=debugger
But when I commit the code, it saves the lines in the repository anyway.
How to remove or at least comment these lines in the repository, and put them back in the working directory?