github – how to remove a large file-from-git-history and how to push to remote git repositories

I just started working on a new project and as you would expect one of the first things I did was to download its git repository from GitHub. These were just some scripts and should have been very small ~5M, but the clone from GitHub took about one hour as the full repo folder was 1.5G… (with the biggest size under .git/objects/pack)