$ git clone -n https://gitee.com/ocs-upgrade/sane-backends.git /var/lib/mock/dist-ocs23-base-build-297308-29018/root/chroot_tmpdir/scmroot/sane-backends Cloning into '/var/lib/mock/dist-ocs23-base-build-297308-29018/root/chroot_tmpdir/scmroot/sane-backends'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-upgrade/sane-backends * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 0dc2be1 上传文件