只合并自己提交的 commit:
// 修改之前的 commit id (不包含选中的 commit id)
git reset 'commit id'
// 存到暂存区
git stash -u (和git stash apply 0对应)
or
git stash (和git stash pop对应)
// 以master为基准 创建临时分支
git checkout -b feat/temp
// 把暂存区修改的commit id 修改的内容 添到当前工作去(合并时有冲突解决冲突)
git stash apply 0 (和git stash -u 对应)
or
git stash pop (和git stash 对应)
// 重新添加 并提交
git add -u
// 提交
git commit -m 'feat:'
// 根据提示操作
git push
or
git push --set-upstream origin feature/zl_temp
// 切换主分支
git checkout master
// 合并到主分支
git merge feat/temp
// 推送远程仓库
git push