$ git clone -n https://gitee.com/wz002/gcab.git /var/lib/mock/dist-an23.3-build-422481-72919/root/chroot_tmpdir/scmroot/gcab Cloning into '/var/lib/mock/dist-an23.3-build-422481-72919/root/chroot_tmpdir/scmroot/gcab'... $ git fetch origin 798ce7fe5058b37a4eaba79f1daa0a9425bea1a2:KOJI_FETCH_HEAD From https://gitee.com/wz002/gcab * [new ref] 798ce7fe5058b37a4eaba79f1daa0a9425bea1a2 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 798ce7f change to use 1.6