当本地仓库和远程均有文件时,关联仓库并推送需四步:
1、git remote add origin URL
2、git pull origin master --allow-unrelated-histories
3、git branch --set-upstream-to=origin/master master
4、git push
当本地仓库和远程均有文件时,关联仓库并推送需四步:
1、git remote add origin URL
2、git pull origin master --allow-unrelated-histories
3、git branch --set-upstream-to=origin/master master
4、git push