$ git clone -n https://gitee.com/wenyuzifang/sanlock.git /var/lib/mock/dist-an23-build-464722-73881/root/chroot_tmpdir/scmroot/sanlock Cloning into '/var/lib/mock/dist-an23-build-464722-73881/root/chroot_tmpdir/scmroot/sanlock'... $ git fetch origin 00647d2950ee6ed84f401b8ca09c543e1f78733c:KOJI_FETCH_HEAD From https://gitee.com/wenyuzifang/sanlock * [new ref] 00647d2950ee6ed84f401b8ca09c543e1f78733c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 00647d2 Update code from upstream