How can configure my local git repository to prevent it to accept large files, which will later generate a error when trying to push to GitHub?
I've recently had a problem with a large file I've, by mistake, added to my local git repository. I've managed to fix it, by editing the commits in my local git and removing the file, through a series of git commands I don't remember right now. What I know it took a big slice of my time.
I'd like to prevent it to happen again, by somehow putting a block in my local git repository when I try to add a large file.