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