远程仓库配置
初始化远程仓库,增加远程仓库地址
# 增加一个远程地址
$ git remote add origin 'url'
# 拉取并合并远程仓库文件
$ git pull origin master
# 强行合并历史分支
git pull origin master --allow-unrelated-histories
增加一个远程仓库
# 直接增加一个远程仓库地址
$ git remote add 'name' 'url'
# 推送更新新的远程仓库
$ git push 'name' '分支'
分享

网友评论