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

229 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