Hi.
I accidently pushed something into the wrong branch. Can I undo that push?
Is it right-click on the last valid commit, and choosing "reset branchname to this commit"? Or another option?
Thanks.
This thread has probably all the steps you need.
To clarify, did you just commit something to the wrong branch (easy to fix), or did you also push it to a remote (fixable, but will cause problems for teammates)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.