LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt

How to Cancel Push in Sourcetree



How to Cancel Push in Sourcetree: step-by-step guide

  1. Go to the 'History' tab.

  2. Right-click the commit you want to go back to.

  3. Choose 'Reset current branch to this commit'.

  4. In the 'Reset to Commit' window, select a mode.

  5. Click 'OK' to confirm.

  6. Click 'Push'.

  7. Check 'Force Push' before pushing.

  8. Click 'Push', this effectively removes the pushed commits from the remote repo.

Quick answer: To cancel push in Sourcetree, go to the History tab, right-click the target commit, and choose Reset current branch to this commit. Select a mode in the Reset to Commit window, click OK, click Push, check Force Push, and click Push again to remove pushed commits from the remote repository.

About this Sourcetree tutorial

Safely remove pushed commits from a remote repository by resetting your branch and force pushing the changes in Sourcetree. This guide shows how to cancel Push in Sourcetree in 8 steps, starting with "Go to the 'History' tab" and finishing with "Click 'Push', this effectively removes the pushed commits from the remote repo". The interactive demo above is a click-through copy of the real Sourcetree interface, so you can rehearse each step before doing it in your own account.

Frequently asked questions

How many steps does it take to cancel Push in Sourcetree?

8 steps. Each one is listed in order above, and the demo highlights exactly where to click.

Can I try it without changing my own account?

Yes. Clicking through the demo doesn't touch your Sourcetree data or settings. Once you know the flow, repeat it in your own workspace.

This tutorial is filed under Sourcetree. Related guides: How to Change Branch in Sourcetree, How to Change User in Sourcetree and How to Change Username in Sourcetree. Last reviewed 05 Oct 2026.

LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt
🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free→

This website uses cookies to enhance the user experience.

AcceptDecline