执行git命令时出现fatal: 'origin' does not appear to be a git repository错误 - 小众知识

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

2019-12-07 07:43:43 苏内容
  标签: git
阅读:13233
在执行git pull origin master时出现:
  fatal: 'origin' does not appear to be a git repository
  fatal: Could not read from remote repository.
  Please make sure you have the correct access rights and the repository exists
 
 
解决方案:
git remote add origin git@github:bx_reader/bx-reader-api.git
 

将关联远程仓库为origin


原来可以访问限制无法访问,出现 'origin' does not appear to be a git repository的话,一般是由于文件夹的权限变了,需要给当前用户分配该文件夹的权限(所有权限,包括该文件夹,子文件夹和所有后代)


扩展阅读
相关阅读
© CopyRight 2010-2021, PREDREAM.ORG, Inc.All Rights Reserved. 京ICP备13045924号-1