如何同时提交到多个存储库,并根据每个存储库设置使用单独的提交用户名

查看 8|回复 0
作者:laters   
Windows git https 方式如何实现同时推送到多个仓库,并根据每个仓库设置一个单独的提交用户名
[remote "github"]
    url = https://github.com/jock/test
    fetch = +refs/heads/*:refs/remotes/origin/*
       
[remote "gitlab"]
    url = https://gitlab.com/test
    fetch = +refs/heads/*:refs/remotes/origin/*|
我如何能为 github gitlab 分别设置对应的提交用户名
github:github-username
gitlab: gilab-username
您需要登录后才可以回帖 登录 | 立即注册

返回顶部