move `head` either above `url` or below `sha1`