force checkout the branch & remove every non .git file and folder before switch
logging and a bit of text revision
even more debug logging and a bit of code style revision
final debug log format correction/enhancement