git设置当前项目用户名密码
首先进入到项目中的.git文件夹,右键,选择git Bash查看配置文件里面的内容 cat config里面并没有user,设置user :git config user.name 'gu1587@163.com'再次查看,user已经设置进去了cat config设置保存git config credential.helper store再次查看一下,配置文件已经设置成功其实上...
·
首先进入到项目中的.git文件夹,右键,选择git Bash
查看配置文件里面的内容 cat config
里面并没有user,设置user :
git config user.name 'gu1587@163.com' |
再次查看,user已经设置进去了
cat config |
设置保存
git config credential.helper store |
再次查看一下,配置文件已经设置成功
其实上面的命令修改的都是这个文件
可以打开直接编辑
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://gitee.com/Freegxx/xfly.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = gu1587@163.com
[credential]
helper = store
参考博客:
https://www.pianshen.com/article/39241512565/
更多推荐
所有评论(0)