One common source of confusion among Git beginners is the misconception that adding a file to the .gitignore file will erase it from the repository’s history.
Ignoring doesn’t remove a file
Push and delete remote branches
Pushing and deleting remote branches are common actions that many Git users need to perform regularly. However, some users may forget how to do so or simply not know the process.
Ignoring files
We don’t always want Git to track everything in our projects, whether it’s compiled source code, files containing passwords, or temporary files created by editors.