To Avoid Rollbacks When You Switch Branches