无法提交到git
我有这些文件,希望将它们推送到github 很自然,我运行了以下命令无法提交到git,git,github,Git,Github,我有这些文件,希望将它们推送到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/
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$
似乎我甚至无法创建这些文件的本地提交
我如何才能让它工作?
您当前正在对“149cf03”上的分支“主”重定基址。
(已修复所有冲突:运行“git-rebase--continue”)
这非常强烈地表明,您正处于重新基准的中间
您需要完成rebase(git-rebase--continue
),或者中止它,然后您就可以开始正常工作了
您不应该在重新基准的中间推动。
您当前正在对“149cf03”上的分支“主”重定基址。
(已修复所有冲突:运行“git-rebase--continue”)
这非常强烈地表明,您正处于重新基准的中间
您需要完成rebase(git-rebase--continue
),或者中止它,然后您就可以开始正常工作了
您不应该在rebase中间推压。当您在rebase中间时,您可以使用
git-rebase--continue
继续推压,也可以使用git-rebase--abort
完全中止推压。之后,您可以添加、提交和推送文件。由于您正处于rebase中间,您可以使用git rebase--continue
继续,也可以使用git rebase--abort
完全中止。之后,您可以添加和提交并推送您的文件。作为代码> Git状态说,您处于重置的中途。在执行任何其他操作之前,请完成或中止重基。注意:在重基过程中处理的工作树文件可能会使您很难完成或中止重基,如果您提交它们,然后中止重基,它们将消失,因为它们在重基正在构建的提交中。(因此,如果要中止rebase,您可能希望将这些文件保存到其他位置)*\*.py
看起来是错误的。你是说<代码> */*.Py < /代码>吗?作为<代码> Git状态< /代码>说,你处于一个重置的中间。在执行任何其他操作之前,请完成或中止重基。注意:在重基过程中处理的工作树文件可能会使您很难完成或中止重基,如果您提交它们,然后中止重基,它们将消失,因为它们在重基正在构建的提交中。(因此,如果要中止rebase,您可能希望将这些文件保存到其他位置)*\*.py
看起来是错误的。你是说*/*.py
?