$ git clone -n https://gitee.com/src-anolis-os/ghc.git /var/lib/mock/dist-an8.10-build-441692-73111/root/chroot_tmpdir/scmroot/ghc Cloning into '/var/lib/mock/dist-an8.10-build-441692-73111/root/chroot_tmpdir/scmroot/ghc'... $ git fetch origin a8:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/ghc * [new branch] a8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 91e644c import ghc-8.2.2-68.3.el8