同时push到GitHub和Gitee

修改.git/config如下:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    # 合并2个 remote 配置
    url = https://gitee.com/project/sdk.git
    url = https://github.com/project/sdk.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

 

你可能感兴趣的:(其他)