$ git clone -n https://gitee.com/newstart-gdlc/nde-image.git /var/lib/mock/dist-an8.9-nde-build-378834-71229/root/chroot_tmpdir/scmroot/nde-image Cloning into '/var/lib/mock/dist-an8.9-nde-build-378834-71229/root/chroot_tmpdir/scmroot/nde-image'... $ git fetch origin c86ea060e06fb36ad1019c66fc7ec5390c2c663f:KOJI_FETCH_HEAD From https://gitee.com/newstart-gdlc/nde-image * [new ref] c86ea060e06fb36ad1019c66fc7ec5390c2c663f -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at c86ea06 更新源码