I was modifying some code in a team repo and mistakenly made all my changes in the 'master' branch when I should have been working in the 'Development' branch. I committed my changes before I realized this, but I'm not able to push changes directly to master.
So I need to move all my commits to Development, push them, and then discard all the changes on master.
Is there a straightforward way of doing this? I was thinking 'rebase Master into Development' but I'm not 100% sure about that. I'm using VS and the built-in git GUI tools.
Okay after comparing a lot of different methods this is what wound up working perfectly for my situation: