Updated procedure for .gitignore manipulation