首页 > 其他分享 >git 回撤git rebase命令

git 回撤git rebase命令

时间:2023-02-28 22:55:23浏览次数:39  
标签:git -- rebase hard 命令 回撤

建议之后使用 git revert, 这个命令是撤销当作新一次的提交。

git 回撤git rebase命令,步骤:

  1. 输入命令查看本地记录
    git reflog
  2. 执行命令回退
    git reset --hard ca606c6
  3. 执行命名取消 rebase 状态
    git rebase --abort

标签:git,--,rebase,hard,命令,回撤
From: https://www.cnblogs.com/Guang-Jun/p/17166396.html

相关文章