The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

sourcetree undo push

mutow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2014

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.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 30, 2014

This thread has probably all the steps you need.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 27, 2014

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)?

TAGS
AUG Leaders

Atlassian Community Events