国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務器之家 - 編程語言 - 編程技術 - Git發現git push origin master 報錯的解決方法

Git發現git push origin master 報錯的解決方法

2020-09-05 16:15Kangvcar 編程技術

本篇文章主要介紹了Git發現git push origin master 報錯的解決方法,小編覺得挺不錯的,現在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

git push origin master 報錯的解決方法,分享給大家,具體如下:

錯誤提示如下

?
1
2
3
4
5
6
7
8
9
[root@linux1 php]# git push -u origin master
To git@github.com:kangvcar/Results-Systems--PHP.git
 ! [rejected]  master -> master (fetch first)
error: failed to push some refs to 'git@github.com:kangvcar/Results-Systems--PHP.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 merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

原因

GitHub遠程倉庫中的README.md文件不在本地倉庫中。

解決方案1

我們只需加上 -f 參數即可push成功

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[root@linux1 qimo]# git push -f
warning: push.default is unset; its implicit value is changing in
 Git 2.0 from 'matching' to 'simple'. To squelch this message
 and maintain the current behavior after the default changes, use:
 
 git config --global push.default matching
 
 To squelch this message and adopt the new behavior now, use:
 
 git config --global push.default simple
 
 See 'git help config' and search for 'push.default' for further information.
 (the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
 'current' instead of 'simple' if you sometimes use older versions of Git)
 
 Counting objects: 53, done.
 Compressing objects: 100% (53/53), done.
 Writing objects: 100% (53/53), 1.35 MiB | 55.00 KiB/s, done.
 Total 53 (delta 8), reused 0 (delta 0)
 remote: Resolving deltas: 100% (8/8), done.
 To git@github.com:kangvcar/Results-Systems--PHP.git
 + fbe05e8...70b187d master -> master (forced update)

解決方案2

我們只需加上 --rebase 參數然后再重新 push 一次即可

?
1
2
[root@linux1 qimo]# git pull --rebase origin master
[root@linux1 qimo]# git push -u origin master

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持服務器之家。

原文鏈接:http://www.jianshu.com/p/681a879745e4

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 国产一区二区精品在线观看 | 国产精品日韩高清伦字幕搜索 | 成人精品一区二区三区中文字幕 | 日韩中文字幕一区二区三区 | 亚洲精品久久一区二区三区 | 久久久久久久国产精品 | 一级特黄毛片 | 久久久99国产精品免费 | 亚洲一区中文字幕在线观看 | 亚洲免费观看 | 黄色电影免费在线观看 | 欧美日韩精品综合 | 午夜精品久久久久 | 国产精品久久久久久模特 | 少妇精品久久久久久久久久 | 日本在线一区二区三区 | 青青草国产精品 | 国产一区二区三区在线免费 | 国产 日韩 欧美 在线 | 久热精品免费视频 | 亚洲高清色综合 | 亚洲一区二区av | 国产视频久久 | 久久久久国产精品 | 免费视频一区 | 在线观看91 | av中文字幕在线 | 欧美激情五月 | 亚洲精品成人天堂一二三 | 欧美成人精品一区二区三区 | 亚洲高清视频在线观看 | 秋霞电影院午夜伦 | 一级毛片儿 | 中文字幕亚洲欧美日韩在线不卡 | 免费成人黄色大片 | 久久精品无码一区二区三区 | 一级片一级片 | 免费视频一区二区 | 狠狠操av| 91精品视频网 | 毛片色|