git将本地仓库强制替换掉远程仓库

$ git remote add origin <url>
$ git push --force --set-upstream origin master

猜你喜欢

转载自www.cnblogs.com/boshen-hzb/p/8986971.html