У меня есть эти файлы, и я хочу отправить их на github.
Естественно, я выполнил следующие команды
git add *\*.py
git commit -m "cleaning"
git push origin master
Однако это привело к следующей ошибке.
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$
Кажется, я не могу даже создать локальный коммит этих файлов.
Как я могу заставить это работать?