add reflog when moving HEAD to a new branch