Skip to content

Instantly share code, notes, and snippets.

View dan89eu's full-sized avatar

Dan Petrescu dan89eu

  • Concept Apps Development
View GitHub Profile
@dan89eu
dan89eu / remove-big-file.sh
Created July 21, 2018 21:59 — forked from BrunoGrandePhD/remove-big-file.sh
Remove a large committed file from your Git repository.
# The commands below are a guide to remove a large file that has been
# accidentally committed to a Git repository's history. If the file is
# larger than 100 MB, GitHub will prevent you from pushing your latest
# commits. The annotated steps below should help you remove the large
# file from your commit history, even if you've made new commit since.
# Some Git users advise against rebasing. You can safely use it here
# because you haven't published your changes yet.
# So, you first need to rebase your current branch onto the point that