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 vote
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
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 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

668 views 9 6
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