1.创建项目

IDEA创建项目提交至远程仓库
IDEA创建项目提交至远程仓库
IDEA创建项目提交至远程仓库
IDEA创建项目提交至远程仓库

2.把项目添加至版本控制

IDEA创建项目提交至远程仓库
IDEA创建项目提交至远程仓库

3.创建.gitignore文件

方法一:
共添加五个
- Ecample user template
- Maven
- macOS
- java
- JetBrains
IDEA创建项目提交至远程仓库
方法二:创建模板

  1. 把方法一中设置好的的.gitignore文件中的内容复制粘贴到自己创建的模板中
    IDEA创建项目提交至远程仓库
    2.以后再创建.gitignore文件 只需选择我们已经创建好的模板:my template****
    IDEA创建项目提交至远程仓库
    IDEA创建项目提交至远程仓库

4.把.gitignore文件添加至git缓存

这样再添加至git缓存的文件,就是已经根据ignore文件过滤过的文件了
IDEA创建项目提交至远程仓库

5.把项目添加至git的缓存中

IDEA创建项目提交至远程仓库

6.提交至本地仓库

IDEA创建项目提交至远程仓库

7.在码云创建项目

8.提交至码云

IDEA创建项目提交至远程仓库
把码云中项目的url复制粘贴进行配置remote
IDEA创建项目提交至远程仓库

相关文章:

  • 2021-04-29
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-08-18
猜你喜欢
  • 2021-06-12
  • 2021-07-05
  • 2021-09-22
  • 2021-11-18
  • 2021-08-26
  • 2021-11-13
相关资源
相似解决方案