记录一个用了很久的git提交到github和gitee比较方便的方法
在当前git init后,在隐藏的git文件夹中找到config文件
[user]name = thels
[remote "github"]url = your github repository urlfetch = +refs/heads/*:refs/remotes/origin/*
[remote "gitee"]url = your gitee repository urlfetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]remote = originmerge = refs/heads/master
键入以上内容
之后git add、gitcommit后,就可以通过git push gitee master和git push github master两个语句分别快速推送到github和gitee两个代码仓库了