一、在Gitee中创建项目
二、下载安装git客户端 [git客户端下载](https://git-scm.com/)
安装git工具,一路next,使用默认配置。
三、将Gitee上的项目与本地项目合并
(1) 获取远端Gitee项目的地址:

(2)打开本地项目目录,空白处右击,选择git bash here

(3)在git bash 终端输入(连接对象远端的项目地址)
git clone https://gitee.com/luhuadeng/JavaPro.git
(4)将工程所有的文件拷贝到新建的工程文件夹 中
四、在Git Bash中上传到Gitee项目
在git bash中,依次调用如下命令
git add .
git commit -m "create program"
git push origin master

五、在本地其他目录中获取Gitee项目
在资源管理器中进入其他目录。比如E:\根目录。打开git bash ,克隆Gitee项目到本地。

在目录中我们可以看到克隆下来的项目。
最后将下载的项目导入IDE。
[参考] https://blog.csdn.net/Luhuadeng/article/details/80183089
网友评论