I have added some files in the same directory of .gitignore. When I push the changes to BitBucket, the files added in .gitignore, also uploaded. How to ignore babel.config.json and package.lock.json. Refer the screenshot.