原文:error: pathspec 'master' did not match any file(s) known to git.

問題描述: 在遠程服務器上新建裸倉庫git bare init git clone裸倉庫到本地 本地新建並切換分支xccdev,git checkout b xccdev 從xccdev分支切換到master分支,提示error: pathspec master did not match any file s known to git. 原因定位: master分支進行過git commit操作 ...

2018-05-30 11:47 0 10220 推薦指數:

查看詳情

Git使用之(pathspec master did not match any file(s) known to git)

一 問題概述 今天在工作中遇到一個問題,使用很久的一個local git repository,里面只有develop分支,那么現在想將分支切換到master分支,問題來了,在切換到master分支時: 提示如下錯誤: 二 問題解決 1.首先我們看一下分支情況: 2. ...

Thu Aug 26 19:00:00 CST 2021 0 1818
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM