setting配置实例
"toolPlugin.gitSetting": [
{
"name": "vue3模版",
"description": "vue3模版",
"detail": "",
"repositoryName": "template-v4.5-plus",
"remoteRepositoryPath": "-b master ssh://git@192.168.1.141:10022/ezfe/template-v4.5-plus.git",
"copyFile": {
"tools/*": "tools",
"public/static/*": "public/static",
"package.json": "package.json"
},
"options": {
"init": true,
"update": true
}
},
{
"name": "vue3模版-主题",
"description": "vue3模版-主题",
"detail": "",
"repositoryName": "template-v4.5-plus",
"remoteRepositoryPath": "-b master-cssvar ssh://git@192.168.1.141:10022/ezfe/template-v4.5-plus.git",
"copyFile": {
"tools/*": "tools",
"public/static/*": "public/static",
"package.json": "package.json"
},
"options": {
"init": true,
"update": true
}
},
{
"name": "字体图标",
"description": "字体图标",
"detail": "",
"repositoryName": "iconFont",
"remoteRepositoryPath": "-b master ssh://git@192.168.1.141:10022/ezfe/iconFont.git",
"copyFile": {
"fonts/": "public/static/assets",
"ezicon-new.css": "public/static/assets",
"ezicon.css": "public/static/assets"
},
"options": {
"init": false,
"update": true
}
}
]
remoteRepositoryPath地址要求(git clone http://邮箱(或用户名):密码@仓库)
- 邮箱 xw@qq.com
- 密码: xw
- 仓库: http://git.test.com/abc/demo
- 邮箱和密码字符串需要用 encodeURIComponent 方法加密一下,直接在 console 里调一下拿结果即可
- git clone http://xw%40qq.com:xw@git.test.com/abc/demo
- 如果是ssh地址: git clone ssh://git.test.com/abc/demo
- 如果有仓库分支:git clone -b master http://xw%40qq.com:xw@git.test.com/abc/demo
进行初始化和更新操作时,需要在当前项目打开激活一个文件