強行推送遠程倉庫html
#把一個現有的工程拷貝一份 #去掉遠程倉庫關聯 git remote rm origin #添加遠程倉庫關聯 git remote add origin http://xxx.git #強行推送 git push origin --force #可能會推不上去,提示,要肯定推進到哪一個分支 $ git push origin --force fatal: The current branch dev has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin dev #按照提示操做,直推送 dev 分支到遠端 git push --set-upstream origin dev