I have tried to push some large files and now want to cancel, how can I delete or remove these from the Push?

In Sourcetree, I committed some large video files to push and the push never completed.  I'm trying to now stop the push and clear out my commit but don't know how to accomplish this.  Please advise.

2 answers

This widget could not be displayed.

If the video files are discardable or backed up elsewhere, do a Repository Checkout at the HEAD and it will discard your commit and put your working copy in sync with the head.

If you want to save the files for a later push, Stash them and this will save them for a later commit and push.

This seems to be the most straightforward way to back out of a commit/push problem.

This widget could not be displayed.

I continue to try and remove some committed large video files but have had no luck.  I cannot push other items as the video files remain in the merge branch 'master'.  How can I remove these?

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

861 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you