-
打开vs code工具 文件–首选项–设置 找到Git 找到setting.json打开编辑 git.path=“git安装路径”
-
终端打开输入git init 项目会生成.git文件夹,打开文件夹下的config的文件配置如下
``` [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true [remote "origin"] url = 你的github链接地址 fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master ```
然后就可以使用vs code 工具上传了
第一次使用涉及到git用户 ,账号设置
用户名:
$ git config --global user.name "github用户名"
邮箱:
$ git config --global user.email "github邮箱地址"