美文网首页
git的那些坑

git的那些坑

作者: 清水jx | 来源:发表于2019-05-27 10:08 被阅读0次

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的那些坑

      本文链接:https://www.haomeiwen.com/subject/dirctctx.html