$ git clone -n https://gitee.com/zhoujiajia111/squid.git /var/lib/mock/dist-an23-build-473603-74127/root/chroot_tmpdir/scmroot/squid Cloning into '/var/lib/mock/dist-an23-build-473603-74127/root/chroot_tmpdir/scmroot/squid'... $ git fetch origin c16c83af1df0b79b7f62809eca81b84977e6d5c7:KOJI_FETCH_HEAD From https://gitee.com/zhoujiajia111/squid * [new ref] c16c83af1df0b79b7f62809eca81b84977e6d5c7 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at c16c83a Update code from upstream