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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
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...

545 views 1 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