1.配置账号
git config --global user.name "账号名"
git config --global user.email "QQ@qq.com"
2.克隆开源项目
git clone https://gitee.com/demo01.git demo01
3.进入项目删除掉原来的远程仓库
git remote -v
git remote remove origin
git remote add origin https://gitee.com/my_project.git
git push -u origin "master"
注意: 推送之前可能要编辑一下.git忽略文件, 因为有些目录时不必推送到服务器的