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

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.

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 Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,094 views 4 2
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