file is too large for github but isnt in there code example

Example 1: remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch <path of the file>'

or if you have a large file you want to delete use 

git stash 
git stash apply

Example 2: github allow large files

# install git lfs
git lfs install

# track file types
git lfs track '*.nc'
git lfs track '*.csv'

# add and commit
git add .
git commit -m "<commit-message>"

# push 
git lfs push --all origin master
git push -u origin master