如何修復提交錯誤的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
相關文章
相關標籤/搜索