命令之后,commit-m 当我写 的时候,它git push显示一个错误
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/DuudeXX8/TripBaku-.git'
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.
帮助可能是什么问题?
问题本身已经有了答案:
您正在尝试推送到远程 git 存储库,但当前分支已经有您没有的更改,为此,您首先需要从远程存储库中获取所有更改,以便您可以在那里进行自己的更改,只需运行命令:
然后上传您的更改。