![](https://i-blog.csdnimg.cn/direct/5fca46dfc24e4d558399db4c36cac624.png)
![](https://i-blog.csdnimg.cn/direct/0e126da9fae942c7854322bec41f0f32.png)
![](https://i-blog.csdnimg.cn/direct/e5f6fcdeda184882b70bd74c8f7dbc77.png)
![](https://i-blog.csdnimg.cn/direct/e090d155880f4b0eb1841ca61a6e2ed1.png)
在项目目录 右键 git bash here
![](https://i-blog.csdnimg.cn/direct/94e7bc712ba74743a9da199b13562859.png)
可以在黑屏输入命令 也可以在项目里面 命令都是一样的
![](https://i-blog.csdnimg.cn/direct/2caf92f682a54ec8b988a1d37f8c682f.png)
![](https://i-blog.csdnimg.cn/direct/0f2950e301b745dd8c224a922266c5a9.png)
要排除哪些
![](https://i-blog.csdnimg.cn/direct/c868572ee4154a09a45c0ff45c72dde1.png)
git add . 添加所有文件
git commit -m "Initial commit" 提交到本地
git remote add origin https://gitee.com/xxxx/xxxx.git 添加远程仓库
git push -u origin master 提交 -u是为了以后直接使用 git push 提交
![](https://i-blog.csdnimg.cn/direct/49dbe1912aed4b709b49ec0343e23c7b.png)
测试demo 没有内容
![](https://i-blog.csdnimg.cn/direct/9356d379d4f242d39263daf4d326e8c1.png)
在项目目录 右键 git bash here
可以在黑屏输入命令 也可以在项目里面 命令都是一样的
要排除哪些
git add . 添加所有文件
git commit -m "Initial commit" 提交到本地
git remote add origin https://gitee.com/xxxx/xxxx.git 添加远程仓库
git push -u origin master 提交 -u是为了以后直接使用 git push 提交
测试demo 没有内容