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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

231 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot