# Git 常用命令

# API

# git放弃本地修改,强制拉取最新代码


git fetch --all
git reset --hard origin/分支名

✅ Copy success!

# 案例 eg:


git fetch --all
git reset --hard origin/master


✅ Copy success!

uni.showToast({
    title: '提交成功',
    icon: 'none',
    success: () => {
        setTimeout(() => {}, 1500);
    }
});

✅ Copy success!