日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

git提交的错误

發布時間:2023/12/18 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 git提交的错误 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

今天學習python,之后想把學習時的代碼推送的遠程上,出來一些錯誤,想在想把這些問題記錄下來

$ git push -u origin master

我首先提交,然后報錯如下

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.


Please make sure you have the correct access rights
and the repository exists.

后來就尋找問題,竟然發現我之前與遠程庫關聯出錯了(單詞拼錯了。。。。。暈)

之后從新關聯

$ git remote add origin git@git.oschina.net:hu/python.git

再提交 ?

$ git push -u origin master
然后又有報錯

error: failed to push some refs to 'git@git.oschina.net:huangen/python.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 pull --rebase origin master

又有報錯

error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.

?

現在,我發現運來本地有更改

于是,我就從新來過

git add .idea/

$ git commit -m "python"

$ git pull --rebase origin master

$ git push -u origin master

?

之后就成功了

轉載于:https://www.cnblogs.com/huanggen/p/6524270.html

總結

以上是生活随笔為你收集整理的git提交的错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。