I have these files and want to push them to github.
So naturally, I ran the following commands
git add *\*.py
git commit -m "cleaning"
git push origin master
However, this produced the following error.
Abrahams-MBP:text_classification abrahammathew$ cd /Users/abrahammathew/Desktop/carecloud/carecloud_doc_extraction/text_classification/
Abrahams-MBP:text_classification abrahammathew$ git add *\*.py
Abrahams-MBP:text_classification abrahammathew$ git status
rebase in progress; onto 149cf03
You are currently rebasing branch 'master' on '149cf03'.
(all conflicts fixed: run "git rebase --continue")
nothing to commit, working directory clean
Abrahams-MBP:text_classification abrahammathew$ git commit -m "cleaning"
rebase in progress; onto 149cf03
You are currently rebasing branch 'master' on '149cf03'.
nothing to commit, working directory clean
Abrahams-MBP:text_classification abrahammathew$ git status
rebase in progress; onto 149cf03
You are currently rebasing branch 'master' on '149cf03'.
(all conflicts fixed: run "git rebase --continue")
nothing to commit, working directory clean
Abrahams-MBP:text_classification abrahammathew$ git push origin master
To https://github.com/springml/carecloud_doc_extraction.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/springml/carecloud_doc_extraction.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Abrahams-MBP:text_classification abrahammathew$
It seems I'm unable to even create a local commit of these files.
How can I get this to work?

git statussays, you are in the middle of a rebase. Finish or abort your rebase before doing anything else. Watch out: work-tree files you fuss with during your rebase can make it hard to finish or abort your rebase, and if you commit them and then abort your rebase, they will vanish because they were in commits that the rebase was building. (So, you might want to save these files elsewhere, if you're going to abort the rebase)*\*.pylooks wrong. Did you mean*/*.py?