$ git clone -n https://src.fedoraproject.org/rpms/gnuastro.git /var/lib/mock/f45-build-56074-966/root/chroot_tmpdir/scmroot/gnuastro Cloning into '/var/lib/mock/f45-build-56074-966/root/chroot_tmpdir/scmroot/gnuastro'... $ git fetch origin f34c9877ad0352cebf27b66d4ae8f0c8536c30d7:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/gnuastro * [new ref] f34c9877ad0352cebf27b66d4ae8f0c8536c30d7 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at f34c987 drop unused files