I was to trying to create a new repository directly via the vscode interface for a project in data science that i am beggining. The problem is that when creating the repository i accidentaly commited all the datasets which are .csv files over 100mb which github does not allow because of their sizes. Now the source control is stuck trying to publish a branch but it won’t go through.
I tried git reset --hard HEAD~1
to undo the commits but it goes to back only for the first time I tried to commit and the .csv files are all there.
I have deleted the files from the local folder and added *.csv
to .gitignore but it still keeps trying to publish the branch with the .csv files first because of the order of the commits. It takes forever to try to publish, it does not go through and now i cant commit anything because it is trying to publish this branch. Any ideas on how to fix?
Eduardo Alves is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.