Articles
203
Tags
265
Categories
66
Home
Archives
Tags
Categories
Link
Search
Home
Archives
Tags
Categories
Link
在.gitignore中添加新的规则对已经被git管理了的文件不生效的解决办法
Created
2023-03-06
|
Updated
2024-08-28
|
Arc
git
general
|
Word count:
35
|
Reading time:
1min
|
Post View:
|
Comments:
解决办法:清理下 git 缓存即可
执行以下命令
#
删除git缓存
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
Author:
ZhangYuhan
Link:
https://zhangyuhan.netlify.app/posts/25743.html
Copyright Notice:
All articles in this blog are licensed under
CC BY-NC-SA 4.0
unless stating additionally.
Arc
git
general
在.gitignore中添加新的规则对已经被git管理了的文件不生效的解决办法
Donate
wechat
alipay
Previous Post
部署前端项目
Next Post
github高级搜索
Related Articles
2023-03-06
github高级搜索
2023-03-06
Gitlab在服务器上的安装
2023-07-24
linux的常用脚本
2023-03-06
创建shell脚本并且运行
2023-03-06
后台运行命令
2023-03-06
查看cpu核心数
Comment
ZhangYuhan
(o゜▽゜)o☆[BINGO!]
Articles
203
Tags
265
Categories
66
Follow Me
Announcement
Welcome to my blog, here is a summary of my daily study and life collected and organized, I hope it can be helpful to you ^_^
繁
Search
Loading the Database