After every update to gitignore, follow below steps (this is useless; if you want just to ignore from git; but still keep in git) =================================================================================================== First, commit all…