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
posted @ 2019-05-27 10:10  清水jx  阅读(149)  评论(0编辑  收藏  举报