一、git pull 报错
There is no tracking information for the current branch. Please specify whic...
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch>
问题原因:本地分支和远程分支没有建立联系
解决办法:运行提示给你的命令
git branch --set-upstream-to=origin/远程分支的名字 本地分支的名字
例如:远程分支叫vue_study 想要创建远程这个分支的本地分支,并关联起来
git branch --set-upstream-to=origin/vue_study vue_study
正确的话返回下面代码:
Branch 'vue_study' set up to track remote branch 'vue_study' from 'origin'.
表示关联成功
再git pull下拉代码,就会成功了
二、You may use special comments to disable some warnings.
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
解决办法:取消ESlint的检测,将useEslint设为false(可以全局搜一下,找到index.js这个文件下的useEslint,将值设为false)
三、npm i报错
104 packages are looking for funding
run `npm fund` for details
这个不算是报错,是给开源代码者捐钱的,
解决办法:
npm install --no-fund
四、将远程git仓库里的指定分支拉取到本地(本地不存在的分支)报错
error: Your local changes to the following files would be overwritten by checkout:
yarn.lock
Please commit your changes or stash them before you switch branches.
Aborting
解决办法:
本地更改不重要,先取消,然后重新运行:
git checkout -b 本地分支名 origin/远程分支名