git合并多次提交到一次提交方法

  1. 使用git checkout branchname切换到对应的分支;
  2. 切换到提交多次版本的最后一次提交git reset --soft commit-id
  3. 使用git push -f强制push ,OK搞定收工

猜你喜欢

转载自phncz310.iteye.com/blog/2283150
今日推荐