确实没有git方面的基础,现在做到8-1的部分,这次的分支上传后第一次没有出现问题。之前我都是按照每个分支做完以后先git add. , 一般会有“LF will be replaced by CRLF in xxx The file will have its original line endings in your working directory.”的warning,
接着的git commit -m 'message',git push,分支的上传都是没问题的,但是转回master就会出错,还有本地的最新分支文件上传完就会消失掉,确实还不太理解
8-2又出现了之前的情况
$ git add .
warning: LF will be replaced by CRLF in src/pages/channel/Channel.vue.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/pages/channel/components/Search.vue.
The file will have its original line endings in your working directory.
------------------------------------------------------
git commit -m 和git push没问题
------------------------------------------------------
$ git checkout master
error: unable to create file src/pages/channel/Channel.vue: Permission denied
Switched to branch 'master'
D src/pages/channel/Channel.vue
Your branch is up to date with 'origin/master'.