如何修复提交错误的Git分支? - How to fix committing to the wrong Git branch?

问题:

I just made a perfectly good commit to the wrong branch. 我刚刚对错误的分支作了很好的提交。 How do I undo the last commit in my master branch and then take those same changes and get them into my upgrade branch? 如何撤消个人主分支中的最后一次提交,而后进行相同的更改并将它们放入个人升级分支? spa


解决方案:

参考一: https://stackoom.com/question/CLDp/如何修复提交错误的Git分支
参考二: https://oldbug.net/q/CLDp/How-to-fix-committing-to-the-wrong-Git-branch
相关文章
相关标签/搜索