IDEA Git 配置及使用

1、下载并安装 Git

2、新建项目

3、配置版本控制器

4、新建github仓库

5、定位到项目根目录,执行命令

创建git仓库时忘记添加 .gitignore 怎么办?

vi .gitignore

内容...

esc :x 保存

git rm -r --cached .

git add .

git commit -m "本次提交注释"

git push

原文地址:https://www.cnblogs.com/tq1226112215/p/7845717.html