After working on a project for a while, there will come a time when we will end up with a lot of local branches that have been merged on remote but still exist on our local machine. To delete git branches that do not exist on remote, we can perform the following steps: Bash Note: You need to be on the main/master branch because this command compares against the head and so you want…