我们通常会通过小乌龟、SourceTree、终端等实现 git 的相关操作,VS Code 开发工具也提供了 git 相关的操作 ,那么在VS Code中如何通过自定义命令实现 git 的相关操作?本文主要介绍了git clone、git add、 git commit 、git push等命令的实现。 创建终端 异步函数声明: async function executeGitCommand(command, options)