How to fix remote: error: refusing to update checked out branch: refs/heads/main in Git | DevErrors