1. 程式人生 > >git push 時報錯 error: failed to push some refs to '[ema

git push 時報錯 error: failed to push some refs to '[ema

原因:這是一個新建的一個倉庫,提交到github時,沒有 pull下來,導致 github中的README.md檔案不在原生代碼目錄中

$ git push -u  origin master
To github.com:Houttuyniae/notes.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:Houttuyniae/notes.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.

需要先執行 git pull --rebase origin master 把 README.md 下來
$ git pull --rebase origin master
From github.com:Houttuyniae/notes
 * branch            master     -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
如果在你pull之前,又執行了commit,提交了一次,則會報錯
$ git pull --rebase origin master
error: cannot pull with rebase: You have unstaged changes.
error: additionally, your index contains uncommitted changes.
error: please commit or stash them.
需要先執行 git stash 快取一下 最後在 push
$ git push -u  origin master
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 590 bytes | 590.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To github.com:Houttuyniae/notes.git
   d81c6a9..929dc11  master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.



相關推薦

git push 時報 error: failed to push some refs to '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a3c4cad7e3dbdbdbdbdbdb">[ema

原因:這是一個新建的一個倉庫,提交到github時,沒有 pull下來,導致 github中的README.md檔案不在原生代碼目錄中 $ git push -u origin master To github.com:Houttuyniae/notes.git ! [

升級 android studio 報Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="026372724266676077

根據日誌裡顯示 http 127.0.0.1 。。。 總是無法build,確定是studio引入了本地的ip所以無法下載更新,於是在我們的studio中開啟System Settings 中的 Http Proxy看是否選擇的是 No proxy, 1 選擇了No proxy 如果是,就

AndroidStudio升級報Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fd9c8d8dbd99989f889a"

近日升級AS到3.2.1版本,新建工程時報錯:   Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6c7d6d6e6c2c3c4d3c1e7c8c2d4c9cfc2f2c3

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Open File Sh

[Visual Studio C++] [MFC 除錯錯誤]:error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c09f9fa9adb09f9fb4a9a

1.編譯問題描述:  error LNK2019: 無法解析的外部符號 [email protected],該符號在函式 "public: unsigned int __thiscall CMultimediatimerDlg::CreateTimer(void)" ([em

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="56372626163233342331">[email prot

今天匯入Android專案的時候突然遇到了一個問題,‘Unable to resolve dependency’ 有點頭疼,然後就在網上找了很多方法,發現都不行,最後發現,原來是 這個檔案的配置出了錯,我新匯入的gradle-4.6-all.zip,我的專案的是gradle-4.4

VS2015 error LNK2019 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="19464e70775478707759282f">[email protecte

前言 上一篇文章中,為了編譯OpenCV的示例程式碼,然後搭建環境, 最後想直接執行示例demo,我在建立新工程的時候,直接建立了一個win32視窗專案,然後環境配置完成後,將opencv 的示例程式碼kalman.cpp直接匯入到新建的vs工程中進行編譯,直接報錯: 錯誤 LN

error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="702f031f131b1504304142">[email protected]a>,該

Reason: 學習使用socket,在stdafx.h檔案加了#include ,編譯 #include "stdafx.h" #include   using namespace std;   int _tmain(int argc

android Studio 出現:Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2a3b3b0b2f2e293e2c

li經千辛萬苦,我的新工程gradle搞定了 但是卻在變異的時候告訴我 Unable to resolve dependency for ':[email protected]/compileClasspath'xxx 等等,導致我的所有的依賴都拿不下來 我去,這不是要我的命嗎 然後又是一

【C++】error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6f9f1cfc8ebc7cfc8e69790">[email protected

原因:c語言執行時找不到適當的程式入口函式 解決:對於控制檯應用程式 1.選單中選擇 Project->Properties, 彈出Property Pages視窗 2.在左邊欄中依次選擇:Configuration Properties->C/C++->

MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e1beb6888fac80888fa1d0d7"

一,問題描述 MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 [email protected],該符號在函式 ___tmainCRTStartup 中被引用 Debug\jk.exe : fa

[Visual Studio C++] [MFC 除錯錯誤]:error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ed1d1e7e3fed1d1fae7e

1.編譯問題描述:錯誤    3    error LNK2019: 無法解析的外部符號 [email protected],該符號在函式 "public: unsigned int __thiscall CMultimediatimerDlg::CreateTim

【轉】MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="adf2fac4c3e0ccc4c3ed9c

@2018-12-18 【小記】 vs-2013 編譯 cJSON code in git-hub 時遇見問題 error LNK2019,解決如下 【問題描述】MSVCRTD.lib(crtexew.obj) : error LNK2019: 無法解析的外部符號 [email pr

Android studio 下載依賴時出現Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8feeffffcfebeaed

Android studio下載依賴時出現無法解析':app @ debug / compileClasspath'的依賴關係錯誤。 原因安裝Android studio時設定了代理或映象伺服器。  解決方法,在C盤中找到.gradle資料夾(一般都是C盤)如我的位置在用記事本開啟.g

github解決hexo d命令出錯error: 推送一些引用到 '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d7b0bea397b0bea3bfa2b5f9b4b8ba">[email&

error: 推送一些引用到 '[email protected]:xxxx.github.io.git' 失敗 FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/tro

Visual Studio 2013 C++ 呼叫mysql錯誤 error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9dc2f0e4eeecf1c2f4f

因為我的系統是64位的,當時安裝的mysql也是64位的,但是我用visual sutido 2013建立的專案預設是32位的,所以導致該錯誤出現,解決方法最好就是改用32位的mysql,也可以將專案編譯為64位,步驟如下: 1 需要專案屬性---->配置屬性

error LNK2019 : 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aff0f0c6c2dff0f0f0f0c8c3dadbe6c1c6dbf8c6dbc7ead7c6d

本來嘗試使用VS2017的,奈何c++在17中貌似改變了很多,不方便和之前的庫一起使用,只好暫時放棄;轉而使用VS2013… … 下載安裝配置freeglut3.0很順利,畢竟已經被坑過很多次了;在編譯的時候遇到了如下如題問題: 切換成windo

編譯caffe 遇到error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="633c3c0a0e133c3c3302170b2e0217000b30130600

這是在gflags中的,由於google為了相容windows xp之前的系統 在config.h中有 // Define if you have the <shlwapi.h> h

ERROR 1045 (28000): Access denied for user <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b1c3dedec5f1ddded2d0ddd9dec2c5">[e

 Ubuntu16.04版本下安裝mysql,在workbench中可以進入資料庫,但是在命令列下執行mysql報錯, mysql -u -root -p出現ERROR 1045 (28000)的錯誤

[轉]在vs2008上編譯獲取cpu程式碼出現的錯誤- error LNK2019: 無法解析的外部符號 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="91ced6f4e5c1e3fef2f4e2e2

1>正在連結...1>LINK : 沒有找到 E:\yy\20110112\cpuproject\cpu\Debug\cpu.exe 或上一個增量連結沒有生成它;正在執行完全連結1>cpu.obj : error LNK2019: 無法解析的外部符號 ,該符號在函式 "void __cde