$ git clone -n https://gitee.com/Weisson/gpsd_1770043180.git /var/lib/mock/dist-an23.4-build-510999-75056/root/chroot_tmpdir/scmroot/gpsd_1770043180 Cloning into '/var/lib/mock/dist-an23.4-build-510999-75056/root/chroot_tmpdir/scmroot/gpsd_1770043180'... $ git fetch origin 7c71b314e35ebe5e02b7bf2635839e8f8748910a:KOJI_FETCH_HEAD From https://gitee.com/Weisson/gpsd_1770043180 * [new ref] 7c71b314e35ebe5e02b7bf2635839e8f8748910a -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 7c71b31 Update code from upstream