原文: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