1.进入项目所在的目录 右键 找到 Git Bash Here 点击打开窗口后执行 git init;
2.执行 git add --all
3.执行 git commit -m "注释"
4.执行 git remote add origin https://gitee.com/***.git (注:"https://gitee.com/***.git"为gitee 克隆地址)
如果 出现此错误信息 “fatal: remote origin already exists. ” 则需要输入 git remote rm origin 命令来先删除关联的远程库。
5.执行 git push -u origin master -f