$ git clone -n https://gitee.com/newstart-gdlc/rest.git /var/lib/mock/dist-an8.9-nde-build-446891-73015/root/chroot_tmpdir/scmroot/rest Cloning into '/var/lib/mock/dist-an8.9-nde-build-446891-73015/root/chroot_tmpdir/scmroot/rest'... $ git fetch origin acb6eea042a4be6ee0e5cf7f513d118a071fe8b7:KOJI_FETCH_HEAD From https://gitee.com/newstart-gdlc/rest * [new ref] acb6eea042a4be6ee0e5cf7f513d118a071fe8b7 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at acb6eea add rest