cd project git init git remote add origin http://gitlab.xxx.com/group/project.git (删除本地origin:git remote rm origin) git add . git branch master (删除本地分支:git branch -d master) git push -u origin master (删除远程分支:git push origin --delete master 或 git push origin :master)