VSCode 如何配置git

VSCode 如何配置git?

  1. 点击设置---- 进入setting代码,把下面这段代码赋值进去,后面是安装时C盘的默认路径---- “terminal.integrated.shell.windows”: “C:\Program Files\Git\bin\bash.exe”,路径中的\是双斜杠
  2. cd切换盘符到当前文件夹就可以了

VSCode常见报错:

  1. fatal: not a git repository (or any of the parent directories): .git
    切换盘符后 还没输入 git init 初始化
  2. fatal: your current branch ‘master’ does not have any commits yet
    你还没有添加commit到commit记录中

你可能感兴趣的:(git)