Git  生成.gitinore忽略文件
CD到指定目录下:
Git 生成.gitinore忽略文件
touch .gitinore

Git 生成.gitinore忽略文件

.gitinore忽略文件 三种方法:

# 以'#'开始的行,被视为注释.(#是注释的意思)

# 忽略掉所有文件名是 foo.txt的文件.

foo.txt

# 忽略所有生成的 html文件,

*.html

# foo.html是手工维护的,所以例外.

!foo.html

# 忽略所有.o和 .a文件.

*.[oa]

 

 

相关文章:

  • 2021-12-17
  • 2021-09-11
  • 2021-07-24
  • 2021-09-28
  • 2022-02-13
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-01-18
  • 2021-06-25
  • 2022-02-07
  • 2021-08-17
相关资源
相似解决方案