vscode git 还原某一个提交记录

解决方案:

1:先查找git 记录

git log

2:切换某一个分支

git reset xxxx

3:推送远端服务器

# 强制推送。main。分支名称
git push -f origin main。

你可能感兴趣的:(git)