日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

git 提交到遠程倉庫 報錯 error: failed to push some refs to ‘https://xxxxxx.git‘

作者:一只程序猿小白 更新時間: 2022-04-12 編程語言

git 學習地址

參考鏈接

報錯如下

error: failed to push some refs to 'https://github.com/GDDXZ/RobotDenso.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.

解決方法:

1、git add . //添加文件到本地倉庫

2、git commit -m "描述信息" //添加文件描述信息

3、git pull origin master // 更新本地版本庫

4、git push -u origin master //把本地倉庫推送至遠程倉庫

原文鏈接:https://blog.csdn.net/qq_42540989/article/details/118720463

欄目分類
最近更新