我正在通过我正在上课的git首次介绍git.我的计算机上的目录中有许多文件,并且能够毫无问题地暂存和提交它们.但是,当我尝试将文件推送到我的github存储库时,我继续收到此消息:
Pushing to https://github.com/BigMeanCat/CMDA
To https://github.com/BigMeanCat/CMDA
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/BigMeanCat/CMDA'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first 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.
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我解决这个问题以及如何解决这个问题?我在网上看到过一些有类似问题的人,但我对git并不熟悉,还不熟悉git的命令行语言.我对采取某些建议犹豫不决,因为我不知道它是否会解决问题或使情况变得更糟. …