1. 程式人生 > >hint: Updates were rejected because the tip of your current branch is behind (報錯資訊 )

hint: Updates were rejected because the tip of your current branch is behind (報錯資訊 )

在github庫中手動添加了readme檔案,本地執行命令:

git add .
git commit -m "login and tasklist"
git push origin master                          // 出現如下的詳細報錯

詳細報錯資訊:

To github.com:mangoyi/Vue_Full_Project.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]
:mangoyi/Vue_Full_Project.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解決方法:
(1)第一步命令

 git config branch.master.remote origin          

(2)第二步命令

 git config branch.master.merge refs/heads/master

(3)第三步命令

git pull                       // 出現讓你對Readme進行修改,肯定不修改,先按esc鍵  然後輸入:wq  
                               // 相當於儲存並且推出                                     

(4)第四步命令

git push origin master          // 完成

相關推薦

hint: Updates were rejected because the tip of your current branch is behind 資訊

在github庫中手動添加了readme檔案,本地執行命令: git add . git commit -m "login and tasklist" git push origin master // 出

Git提交失敗之 Updates were rejected because the tip of your current branch is behind

錯誤顯示 D:\devworkspace\ecpphoton\jcodef>git push To https://github.com/osxm/jcodef.git ! [rejected] master -> master (non-fast-forward)

刪除github專案失敗時出現:Updates were rejected because the tip of your current branch is behind

刪除github上的專案失敗報錯如下 這是由於我本地的倉庫和遠端github倉庫發生了衝突導致的,解決方法如下 1.強制使用push git push -u origin master -f 注意:使用此方法會使遠端的修改丟失,一般是不可取的 2.推送前先將遠端倉

Updates were rejected because the tip of your current branch is behind 問題出現解決方案

提供如下幾種方式: 1.使用強制push的方法(多人協作時不可取): git push -u origin master -f 2.push前先將遠端repository修改pull下來 git pull origin master git push -u origin master 3.不想me

git push "Updates were rejected because the tip of your current branch is behind"

在Android原始碼的修改過程中,在把本地的分支push到伺服器的時候遇到如下錯誤: error: failed to push some refs to '[email protect

GitUpdates were rejected because the tip of your current branch is behind

使用git的過程中有時候會出現無法push的問題,報錯如下圖: 這是由於遠端repository和我本地的repository衝突造成,通常發生在多人協作的開發過程中 解決方法: 1.使用強制push的方法: git push -u origin

【git】updates were rejected because the tip of your current branch is behind its remote counterpart

剛建立的github版本庫,在push程式碼時出錯: $ git push -u origin master To [email protected]:******/Demo.git ! [rejected] master -> master (non-fast-forwa

Git工作筆記004---torisegit使用時Updates were rejected because the tip of your current branch i

   JAVA技術交流QQ群:170933152        因為要跟別的公司一塊合作開發,我們用svn他們用git,現在又得用git  我在提交的時候:報如下錯誤: git.exe pu

Updates were rejected because the remote contains work that you do hint: not have locally. This is u

今天在學習git時, $ sudo git push origin master 報錯了: To https://github.com/xxxxx/xxxx.git ! [rejected] master -> master (fetch firs

Updates were rejected because the remote contains work that you do

cau 需要 倉庫 cnblogs 提交 添加文件 cte ges soft 每次建立新的倉庫,提交的時總會出現這樣的錯誤,真是頭疼,...... 直接開始正題,git 提交的步驟: 1. git init //初始化倉庫 2. git add .(文件na

Git提交到GitHubUpdates were rejected because the remote contains work that you do not have locally

轉自:https://blog.csdn.net/u011284073/article/details/81609707  在使用Git將本地專案上傳到GitHub上時,鍵入命令: git push -u origin master 報錯提示:Updates were reject

git Updates were rejected because the remote contains work that you do 解決辦法

Username for 'https://github.com': dummymare Password for 'https://[email protected]': To https://github.com/dummymare/Hello-World

The request was rejected because the URL contained a potentially malicious String ";"解決,

去掉 URL 中討厭的 jsessionid 在Java開發的網站中,經常會出現在URL中包含有jsessionid,用來記錄session。 這是因為如果瀏覽器不支援cookie,JSP容器通過在URL中包含jsessionid來達到session的效果。 第一次訪問的時候伺服器不知道客戶

The request was rejected because the URL was not normalized.

注意:spring boot 1.5.10.RELEASE 版本後 ,類似ip:port//resources 這樣訪問 // 可以被處理訪問 就會出現上邊異常。修改客戶端請求中的//即可。

opportunity space: What we see is just the tip of an iceberg | AITopics

Every time there is a tech buzzword, there is the inevitable rush to adopt it. Remember the'everything dot com' phase in the early 2000's and the e-commerc

Damn It, It’s on the Tip of My Tongue

Damn It, It’s on the Tip of My TongueThere is a very specific feeling of frustration that comes with trying to recall a word that you know is sitting in yo

Using pam and MySQL to authenticate the users of your PureFTPd server

Using pam and MySQL to authenticate the users of your PureFTPd serverHow to install and configure MySQL, pam-mysql, pure-ftpd, etc…At Alchimie we use FTP a

3 Tips to Boost the Performance of your Varnish Cache

TIP #3 : Browser optimizationBrowser limits the number of concurrently HTTP requests on the same domain (RFC2616). Of course, you cannot change the client’

Ask HN: What's the mission of your company and why does it truly matter?

I'm a co-founder of Mixnode and we want to "make web-scale data affordable for everyone".Having access to trillions of data points from the web is a super

If Twitter is the Kingdom of Lies, then Bitcoin is the Currency of the Realm

If Twitter is the Kingdom of Lies, then Bitcoin is the Currency of the RealmRecent studies — and recent news stories — make clear the interest in and value