Add open-git function.