战狂粗人张

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

一、进入.git文件夹

 

二、编辑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个仓库。

posted on 2020-07-01 23:17  战狂粗人张  阅读(555)  评论(1编辑  收藏  举报