vs code配置git

在项目目录执行

git init

修改.git文件夹下的config文件

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[user]
	name = 名称
	email= 邮箱
[remote "origin"]
	url = https://gitlab.com/项目地址.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

添加user模块和name email

修改vscode配置

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "env": {
                "GOPATH" : "D:/go_work",
                "GOROOT":"C:/Go"
            },
            "args": [],
            "git.path":"C:/Apps/Git/bin/git.exe",
            "terminal.integrated.shell.windows":"C:\\Apps\\Git\\bin\\bash.exe"
        }
    ]
}

更改完成后,此处会提示相关信息。

猜你喜欢

转载自www.cnblogs.com/LC161616/p/10132596.html