git一个本地仓库提交到2个账户仓库

来源:互联网 发布:卡尔维诺 知乎 编辑:程序博客网 时间:2024/05/20 03:42

本地仓库config配置

[core]    repositoryformatversion = 0    filemode = false    bare = false    logallrefupdates = true    symlinks = false    ignorecase = true    hideDotFiles = dotGitOnly[remote "github"]    url = https://github.com/paddingme/paddingme.github.io.git    fetch = +refs/heads/*:refs/remotes/github/*[branch "master"]    remote = origin    merge = refs/heads/master[remote "gitcafe"]    url = https://gitcafe.com/paddingme/paddingme.github.io.git    fetch = +refs/heads/*:refs/remotes/gitcafe/*[alias]    publish=!sh -c \"git push github master && git push gitcafe master:gitcafe-pages\"
0 0
原创粉丝点击