码迷,mamicode.com
首页 > 其他好文 > 详细

git错误

时间:2019-05-27 10:34:25      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:hub   from   toc   git add   错误   core   pos   git   输入   

1.输入 $ git push -u origin master 命令出现下面错误

$ git push -u 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 reposito

解决办法

$ git remote add origin?git@github.com:github帐号名/项目名.git

2.输入 $ git add . 出现下面错误

warning: LF will be replaced by CRLF in vue.js.
The file will have its original line endings in your working directory.

解决办法

$ git config --global core.autocrlf false

git错误

标签:hub   from   toc   git add   错误   core   pos   git   输入   

原文地址:https://www.cnblogs.com/cleanwaterjx/p/10929252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!