I am trying to push my local repository to a github repository but it seems to fail. I have followed the instruction from here and I guess everything seemed fine until the final step:
git push origin master
[remote rejected] master -> master (pre-receive hook declined)
Initially I had 2 issues (at least) as I also had a huge file in a folder (exceed the limitation of 100MB) imposed by github. Anyway I thought I removed the huge file with:
git rm -r --cached model/
git commit -m "Object Detection v0.1"
I could not see the large folder using:
git ls-tree --full-tree -r HEAD
so I guessed I must have removed it.
My remote repository is empty. I checked this answer but for some reason the most popular (not the accepted one) answer refers to gitlab instead of github. And I couldn't find any relevant setting to github neither could I decipher the accepted answer.
So, my questions is how can I push my local repo to my remote repo (I own the remote one)? Also, why I still see error messages about the huge file (I presumed) I had removed? Are there any other actions I should perform to achieve this?
Edit:
To answer why the question here is not a duplicate of mine (or vice versa anyway):
I own the repo so I cannot contact anyone (as suggested in the accepted answer there) and the problem was not on the server side since I actually managed to push a repo without the huge file.
My situation was quite simple (my commits did not contain any real changes in fact) and basically bypassed my problem by creating a new local repo but it's really useful the answer of @Tim.