Closed sunmingtao closed 3 years ago
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch nba/src/main/resources/nba_players_game_stats.csv' HEAD
git pull origin main --allow-unrelated-histories
git push
Note the first git filter-branch ...
command is a dangerous operation, which might cause problems for shared repository. Consider other options in
https://stackoverflow.com/questions/19573031/cant-push-to-github-because-of-large-file-which-i-already-deleted
Delete the large file, commit, still doesn't allow push. Same error