Drupixels: Resolve Drupal error: unable to unlink old ‘sites/default/settings.php’: Permission denied

Everything was going well with your Drupal setup on local and then GIT STRICKS BACK. You are trying to do a git checkout and moving to a different branch but now you have an error of GIT not able to unlink file and a modified file.