Github删除多远程分支场景下的提交

问题描述

我的项目仓库有多个远程分支,分别是developmentdemostaging

我对某些代码进行了更改,不小心将提交推送到了 ma​​ster 分支,而必须将其推送到 development 分支。

enter image description here

现在,我希望摆脱我在 master 分支上所做的错误提交,而不影响其他远程分支的内容

我尝试了 git reset <commit-id before my commit on the development branch>,但这似乎并没有像我期望的那样工作。

git reset <commit-id of the most recent commit on the master branch> 是正确的做法吗? 或者有更好的方法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)