条件准备:
需要提前在系统中安装 git。
git 提交准备
在idea中打开Terminal终端,然后输入下面内容
1 git init ,项目文件夹中会看到 .git 文件夹
2 git status , 红色代表未提交
3 git add . (将所有文件一起提交至缓存 git add **.txt 只提交一个 txt 文件)
4 git status 则绿色代表已提交至缓存
5 git commit -m "你的信息,比如1.6提交" [该步骤提交至本地仓库,-m 为 msg 的意思]
6 git remote -v [发现为空,说明无法提交远程仓库,所以需要进行配置]
7 git remote add origin https://gitee.com/***/test-vue.git [则增加远程仓库]
8 git remote -v 再次运行,则说明成功配置
9 git push -u origin "master" [则提交成功,如果弹出对应仓库的用户登录信息,需要登录用户名和密码],则仓库里有了