Update and rename .HEAD to .Git.HEAD