Articles
210
Tags
274
Categories
68
Home
Archives
Tags
Categories
Link
Search
Home
Archives
Tags
Categories
Link
在.gitignore中添加新的规则对已经被git管理了的文件不生效的解决办法
Created
2023-03-06
|
Updated
2024-11-06
|
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
常用api总结
Next Post
word转pdf
Related Articles
2023-03-06
Gitlab在服务器上的安装
2023-03-06
github高级搜索
2023-07-24
linux的常用脚本
2023-03-06
创建shell脚本并且运行
2023-03-06
查看后台运行的java -jar项目的端口号,并杀死该进程
2023-03-06
后台运行命令
Comment
ZhangYuhan
(o゜▽゜)o☆[BINGO!]
Articles
210
Tags
274
Categories
68
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