首先在bitbucket上创建一个仓库,终端里打开已经存在的项目的文件夹根目录,再执行下面的代码 cd /path/to/my/repo git remote add origin https://[email protected]/xxxx/happy.git </