在屏幕或vscode上打印用户当前正在使用的gitrepo的名称
https://www.npmjs.com/package/git-repo-info 尝试使用信息和许多其他但完整的路径而不是仓库名称打印出来
branch(`${folderPath}`)
.then(name =>{
var info = getRepoInfo(`${folderPath}\.git`);
vscode.window.showInformationmessage(info.branch)
}) //=> 'master'
.catch(console.error);
});
我想显示的唯一回购名称