同一台电脑生成不同的ssh推送到不同账号
原创...小于 1 分钟
同一台电脑推送到不同账号
最简单的方式:不使用ssh
,登陆不同账号即可
注:github
现在不可以直接使用账号推送了,但是可以借助VScode
,实现这一功能
生成不同的ssh
ssh
相关目录下的config
地方 config
git config --local user.name "github的用户名“
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[user]
name = Heijingmei
email = bh.heijingmei@gmail.com
[branch "main"]
remote = origin
merge = refs/heads/main
[remote "origin"]
url = https://github.com/Heijingmei/Heijingmei.git.io.git
fetch = +refs/heads/*:refs/remotes/origin/*
Powered by Waline v3.1.3