我的环境:
OS:win10
Vue:2.82
Yarn:0.27.5
Nodejs:8.2.1
Other:Git-bash当我第一次使用vue init webpack alphalayui构建一个vue项目时,我发现了一件奇怪的事情。
它可以得到我的电子邮件ID,我感到非常惊讶,这个电子邮件ID只是在一个名为Foxmail.But的软件中使用,我在这台计算机中有很多电子邮件ID。
我想知道vue init如何获得我的电子邮件ID?
有人能帮我吗?提前谢谢。
$ vue init webpack alphalayui ? Project name (alphalayui) y ? Project name y ? Project description (A Vue.js project) y ? Project description y ? Author (alphayan <yanyq@sdkej.com>) y ? Author y ? Vue build standalone ? Install vue-router? (Y/n) y ? Install vue-router? Yes ? Use ESLint to lint your code? (Y/n) y ? Use ESLint to lint your code? Yes ? Pick an ESLint preset (Use arrow keys) ? Pick an ESLint preset Standard ? Setup unit tests with Karma + Mocha? (Y/n) y ? Setup unit tests with Karma + Mocha? Yes ? Setup e2e tests with Nightwatch? (Y/n) y ? Setup e2e tests with Nightwatch? Yes
发布于 2017-07-25 04:01:53
试试这个:
git config --get user.email...and看它是否匹配。
这是Vue.init在vue-cli/lib/git-user.js中使用的
try {
name = exec('git config --get user.name')
email = exec('git config --get user.email')
} catch (e) {}https://stackoverflow.com/questions/45293649
复制相似问题