Git 怎么添加多个远程仓库

2025-05-18 18:19:58
推荐回答(1个)
回答1:

比如你有oschina和github#添加githubgit remote add origin https://github.com/xxx(仓库地址)#添加oschinagit remote add oschina https://git.oschina.net/xxxx(仓库地址)#提交到oschinagit push oschina master(分支名)#提交到githubgit push origin master(分支名)#从oschina更新git pull oschina master#从github更新git pull origin master