1.进入项目根目录
2.点击查看,显示隐藏文件夹
出现git文件夹
3.进入.git文件夹
4.
4.编辑config
原文件
修改后
代码如下
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[submodule]
active = .
[remote "origin"]
url = https://gitee.com/stylesmile/snow.git
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://github.com/stylesmile/snow.git
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "github"]
url = https://github.com/stylesmile/snow.git
fetch = +refs/heads/*:refs/remotes/gitee/*
tagopt = --no-tags
再次push ,就会同时提交到2个仓库