问题:指定文件忽略 或 禁止文件上传版本库

注意:如果本地库文件已被git track 首先取消追踪后,再加入.gitignore 文件中。.gitignore 规则--https://www.jianshu.com/p/a09a9b40ad20

步骤:

1 git rm --cached 'filename'   删除文件的跟踪,并保留在本地。

2 加入.gitignore 规则中。

测试成功,大家可以操作一下。

相关文章:

  • 2022-01-09
  • 2021-11-01
  • 2021-10-30
  • 2021-09-23
  • 2021-12-24
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-09-03
  • 2021-07-20
  • 2021-11-01
  • 2022-01-21
  • 2022-02-07
相关资源
相似解决方案