1 查看提交历史,查看想要回退版本的版本号
git log src/app.vue

2 回滚某个文件到指定版本
git reset 版本号 src/app.vue

3 提交到本地仓库-拉取合并代码-提交到远程
git commit -m '提交描述'

4 选择该文件
git checkout src/app.vue

5 push到远程仓库
git push

相关文章:

  • 2021-07-01
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2022-02-07
  • 2021-06-24
  • 2021-05-03
  • 2021-08-06
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案