$ git clone -n https://gitee.com/fundawang/postgis.git /var/lib/mock/dist-an23-epao-build-302365-65991/root/chroot_tmpdir/scmroot/postgis Cloning into '/var/lib/mock/dist-an23-epao-build-302365-65991/root/chroot_tmpdir/scmroot/postgis'... $ git fetch origin e9bbbc9f56a71a3d9e82e9bb0f79947240c17953:KOJI_FETCH_HEAD From https://gitee.com/fundawang/postgis * [new ref] e9bbbc9f56a71a3d9e82e9bb0f79947240c17953 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at e9bbbc9 update file