support ssh cloning and updating in gitcmd impl