赞
踩
此篇不演示如何拉取,创建,推送仓库。
如需基础教程,请自行搜索
打开你的.git
文件夹,找到config
文件并打开它,看到的内容应该是类似这样的
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://XXXX.com/XXXXX/XXXXX.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
直接在url
下面添加你想添加的其他仓库的链接就可以
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://XXXX.com/XXXXX/XXXXX.git
url = https://github.com/XXX/XXX.git # 直接添加一个链接就完事了
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
然后将本地文件推送到仓库
git add -A
git commit "Projects"
git push origin master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。