Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

sourcetree undo push

mutow 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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events