#!/bin/bash git add -A git commit -m"add new package" git push -f if [ -f "Cargo.lock" ];then echo "文件存在" rm Cargo.lock git rm Cargo.lock else echo "文件不存在" fi cargo publish