1、新建项目后,在本地git clone后再复制代码进来提交
新建项目:https://gitee.com/projects/new
2、新建项目后,使用以下命令将本地已有代码关联至gitee项目
git init
git remote add origin https://gitee.com/xxx(账号)/xxx(项目名).git
git add .
git commit -m "Initial commit"
git merge master --allow-unrelated-histories
git pull --allow-unrelated-histories
git push -u origin master