Un-commit large file that generates error upon push

I'm new to Git and am not a developer, but I've recently started using Sourcetree and Git for version control. I accidentally committed a new file that exceeds 100MB. Now every time I try to push, I get an error message:

myfilename.mp4 exceeds GitHub's file size limit of 100.00MB. 

I don't mind that I can't push that change to the repo, but there are other changes I do need to push and this error is preventing me from doing so. I want to go back as if I never committed the large file to the repo, but still commit all my other changes. Is it possible to do this?

1 answer

This widget could not be displayed.
Hi Raina! If you have several commits and you only want to remove one of them, then a rebase interactive will help you. You can learn more about it at Interactive rebase Sourcetree 
Let us know if you have any questions!
Cheers,
Ana

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

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

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