同步 github 和 gitee

pull/1/head
Zhang Peng 2019-07-02 12:07:14 +08:00
parent b78f9d4d13
commit 31a6c4dd3b
2 changed files with 20 additions and 0 deletions

15
config/git-config 100644
View File

@ -0,0 +1,15 @@
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[submodule]
active = .
[remote "github"]
url = git@github.com:dunwu/db-tutorial.git
fetch = +refs/heads/*:refs/remotes/github/*
[remote "gitee"]
url = git@gitee.com:turnon/db-tutorial.git
fetch = +refs/heads/*:refs/remotes/gitee/*

View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
cd ..
git push github master
git push gitee master