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

0 votes
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!

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

962 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