$ git clone -n https://gitee.com/wency_cn/net-snmp.git /var/lib/mock/dist-an23-build-508391-74974/root/chroot_tmpdir/scmroot/net-snmp Cloning into '/var/lib/mock/dist-an23-build-508391-74974/root/chroot_tmpdir/scmroot/net-snmp'... $ git fetch origin e8d6dc325a2fdd456fbed4fde2f27ae4725d5ae5:KOJI_FETCH_HEAD From https://gitee.com/wency_cn/net-snmp * [new ref] e8d6dc325a2fdd456fbed4fde2f27ae4725d5ae5 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at e8d6dc3 Update code from upstream