1. 程式人生 > >fatal: could not read Username for 'https://github.com': No such file or directory

fatal: could not read Username for 'https://github.com': No such file or directory

在建立git倉庫時遇到問題
github提示:
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/caihuijian/pro_designpattern.git
git push -u origin master

在執行
git push -u origin master
出錯:
fatal: could not read Username for ‘https://github.com‘: No such file or directory

百度了,貌似是某些版本的git bash的bug
修正分支為
git remote set-url origin [email protected]:caihuijian/pro_designpattern.git
繼續執行
git push -u origin master
即可
注意替換自己的版本庫地址

相關推薦

fatal: could not read Username for 'https://github.com': No such file or directory

在建立git倉庫時遇到問題 github提示: git init git add README.md git commit -m “first commit” git remote add o

hexo d 報錯‘fatal: could not read Username for 'https://github.com': No error’

問題描述 今天早上,一如往常的往在github上建立的hexo部落格上傳文章,結果報錯 ‘fatal: could not read Username for 'https://github.com': No error’ create mode 100644 2018/09/16/1537059562/i

jenkins gogs 通過git部署 遇到的問題 fatal: could not read Username for 'http://47.92.55.118:3000': No such d

jenkins gogs 通過git部署  遇到的問題 fatal: could not read Username for 'http://47.92.55.118:3000': No such d       遇到這個錯,網上找了一圈也沒有

jenkins gogs 通過git部署 遇到的問題 fatal: could not read Username for 'http://47.92.55.118:3000': No such d

jenkins gogs 通過git部署  遇到的問題 fatal: could not read Username for 'http://47.92.55.118:3000': No such d 遇到這個錯,網上找了一圈也沒有找到方法,最後在伺服器執行了g

c++ include包含工程目錄下的.h檔案,報錯:fatal error C1083: 無法開啟包括檔案:“Sales_item.h”: No such file or directory

背景:刷c++primer的題目,將下載的某個標頭檔案拖拽到自己建立的工程目錄下,在自己新建的原始檔中include包含時,報無法開啟檔案 明明有檔案 為什麼說無法開啟呢 於是到本地的工程目錄中開啟一看,果然沒有這個檔案 說明通過滑鼠拖拽檔案進入到工程樹上面,檔案並沒

VS2008中"fatal error C1083:無法開啟包括檔案:“Stdafx.h”: No such file or directory

錯誤型別1: 環境:VS2008 語言:C++      下午出了一個非常可惡的問題,我的一個基於MFC 對話方塊的程式因為預編譯標頭檔案stdafx.h的原因始終無法編譯通過。 由於程式整體是需要預編譯標頭檔案的。因此工程內所有cpp檔案通通都包括了#include st

redis 編譯報錯 CC:not find 和 error: jemalloc/jemalloc.h: No such file or directory

解壓完redis後執行make命令 cc:not find 原因是沒有安裝gcc編譯器,安裝後解決 Ubuntu 可用 apt-get install gcc 來下載安裝  error: jemalloc/jemalloc.h: No such file or direc

git push時出現Username for 'https://github.com': 解決方法

使用git push origin master是出現如下問題; Username for ‘https://github.com‘: 解決辦法: git remote set-url origin

git push時出現 Username for 'https://github.com':

使用git push origin master是出現如下問題; Username for 'https://github.com': 但是我由於在公司已經用了公司的gitlab賬號已經添加了個rs

Git異常:fatal: could not create work tree dir 'XXX': No such file or directory

—————————————————————————————————————————————————————— 很多人問,明明有git gui 和 github可以直接圖形化操作的嗎?全部指令幹啥??? 呃(⊙o⊙)…呃(⊙o⊙)… ===> 裝逼~ O(∩_∩)O~,開玩笑的,其實就是為了通用

vmware:Could not open /dev/vmmon: No such file or directory.

virt erro ons vmware blog ould con rect sudo Q: Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel mo

qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory

問題:[email protected]:/home/xvv/program/opencvDemo1# qmake -v qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or dir

qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory 解決方案

昨天晚上,第一次用qt,但在編譯時,遇到上述的問題,然後在網上查詢了很多資料,感覺別說的都有道理,但還是不太懂,不過弄了一個多小時後,終於搞定了。 解決方法:首先找到qmake的可執行檔案路徑,我的路徑是/usr/lib/i386-linux-gnu/qt5/bin,在這裡我用的是qt5,我估計

Centos7誤刪/root目錄後重啟報錯:Could not chdir to home directory /root: No such file or directory

誤刪/root目錄 一、報錯: 二、解決辦法: 一、報錯: 誤刪根目錄的root資料夾 重啟後提示錯誤 could not chdir to home directory /root:No such file direc

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

執行qmake -v出現錯誤:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory分析:qtchooser預設選擇路徑中沒有指向qmake路徑解決方法:cd /usr/lib/x86

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

ipmitool使用報錯處理 Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory 解決辦法:需要載入相關模組 檢視先關模組是否載入(可以看出模組未載入

could not connect to server: No such file or directory

目錄 環境 症狀 問題原因 解決方案https://support.highgo.com/#/index/docContent/bd285b047c3cbe 環境 系統平臺:Linux x86-64 Red Hat Enterprise Linux 7,Linux x86-6

error: could not lock config file E:/git/Git/%USERPROFILE%/.gitconfig: No such file or directory

 當你安裝Git後首先要做的事情是設定你的使用者名稱稱和e-mail地址。這是非常重要的,因為每次Git提交都會使用該資訊。它被永遠的嵌入到了你的提交中:   $ git config –global user.name “John Doe”   $ git

https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory報錯解決方案

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――   ### Command  

fatal error: Python.h: No such file or directory 解決

parrot python error pycrypto python.h [常見錯誤] fatal error: Python.h: No such file or directory環境場景系統: Parrot Linux軟件: 系統python默認版本2.7 PyCharm默認版本P