我对 git 很陌生。这可能是一个愚蠢的问题,但我真的不知道如何解决这个问题..我一直试图找到答案,但我无法......
我试图使用 React.js 和 Node.js 创建我的项目。我创建了从“npx create-react-app client”创建的 sever.js 和 client 文件夹。当我第一次推送到 git 时,我收到了这个错误消息。
! [rejected] master -> master (fetch first)
error: failed to push some refs
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 …Run Code Online (Sandbox Code Playgroud)